From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2496172 for ; Tue, 4 May 2021 15:46:33 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 1831860BD3; Tue, 4 May 2021 15:46:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620143192; bh=HjWdlGi51gxgMbxhNStXncgZHq51SkoVHiNnYwf6fMM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lAPGmaSMFz8brn0DX/cZkjHNSWTlHdENIaczx9iKbXXSTNjt9oCaQF9gmqG5dfTxR wKQxHtviDPxFpf+MVmQXvF2k6ByJ/QC3jT2tVF4bbIgvzvdrRJF7IiT+ndCmtTzcHX AOUkg38T0mHwHJKeDl+7j7kY+S8CWep3cNC8Tjbo= Date: Tue, 4 May 2021 17:46:29 +0200 From: Greg Kroah-Hartman To: "Fabio M. De Francesco" Cc: Matthew Wilcox , outreachy-kernel@googlegroups.com, David Kershner , sparmaintainer@unisys.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Daniel Vetter , Dan Carpenter Subject: Re: [Outreachy kernel] Re: [PATCH v7] staging: unisys: visorhba: Convert module from IDR to XArray Message-ID: References: <20210504133253.32269-1-fmdefrancesco@gmail.com> <3550993.e1xmc6yJDa@linux.local> <20210504140119.GH1847222@casper.infradead.org> <810075373.q0sU067TuV@linux.local> X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <810075373.q0sU067TuV@linux.local> On Tue, May 04, 2021 at 04:38:11PM +0200, Fabio M. De Francesco wrote: > > As far as (1) and (2) are regarded, I've been told that when one modifies code > she/he should not diverge from the style of the subsystem/driver maintainer/ > author. If you look at visorhba_main.c, you'll find a lot of unnecessary > 'else' and 'if (success)'... > > So what are the general rules one should follow when changing (trivial) Linux > code? Please note that my question has no other (hidden) purposes than > learning to work properly with the Linux community and to reduce the > unnecessary noise consequential to submitting a high number of patch versions. "trivial" changes should only be done in subsystems that welcome it. drivers/staging/ welcomes it, anything other than that, you need to ask the maintainer. thanks, greg k-h