From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Sun, 16 Nov 2014 12:07:39 +0000 Subject: Re: [PATCH 1/1] kernel-audit: Deletion of an unnecessary check before the function call "audit_log_e Message-Id: <5468938B.502@users.sourceforge.net> List-Id: References: <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <54687F1A.1010809@users.sourceforge.net> <20141116112457.GB4905@mwanda> In-Reply-To: <20141116112457.GB4905@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: cocci@systeme.lip6.fr > The original code is very clear, the new code works exactly the same but > it's not clear if the author forgot about handling errors from > audit_log_start(). We have got different expectations on source code clarity here. > So now someone will come along later and add: > if (!ab) > return; > > We get a lot of mindless "add error handling" patches like that. This is an interesting background information. Do you eventually prefer to improve the affected error detection and corresponding exception handling? Will a condition check become absolutely necessary there? Regards, Markus