Received: from eggs.gnu.org ([2001:4830:134:3::10]:36144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCZab-0004S0-5C for qemu-devel@nongnu.org; Mon, 13 Jun 2016 17:40:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCZaa-0000fx-Ar for qemu-devel@nongnu.org; Mon, 13 Jun 2016 17:40:09 -0400 Date: Mon, 13 Jun 2016 18:40:00 -0300 From: Eduardo Habkost Message-ID: <20160613214000.GM18662@thinpad.lan.raisama.net> References: <1465589538-24998-1-git-send-email-ehabkost@redhat.com> <1465589538-24998-4-git-send-email-ehabkost@redhat.com> <87r3c1wclw.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r3c1wclw.fsf@dusky.pond.sub.org> Subject: Re: [Qemu-devel] [RFC v2 3/3] Remove unnecessary variables for function return value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, kwolf@redhat.com, qemu-block@nongnu.org, mreitz@redhat.com, borntraeger@de.ibm.com, cornelia.huck@de.ibm.com On Mon, Jun 13, 2016 at 01:29:47PM +0200, Markus Armbruster wrote: > Eduardo Habkost writes: > > > Use Coccinelle script to replace 'ret = E; return ret' with > > 'return E'. The script will do the substitution only when the > > function return type and variable type are the same. > > > > Sending as RFC because the patch looks more intrusive than the > > others. Probably better to split it per subsystem and let each > > maintainer review and apply it? > > As far as I'm concerned, obvious mechanical cleanups like this one can > go in as a single tree-wide patch. I'd consider making you split it up, > then chase maintainers a waste of your time[*]. Not wasting my time sounds like a good idea. :) Once the issues below are fixed and Eric's comments are addressed, should it go through your error reporting tree? > > checkpatch.pl is unhappy: > > 529: WARNING: line over 80 characters > 563: WARNING: line over 80 characters > 695: WARNING: line over 80 characters > 811: ERROR: return is not a function, parentheses are not required > 830: ERROR: return is not a function, parentheses are not required > 849: ERROR: return is not a function, parentheses are not required > > > [*] Been there, done that, but if it is what it takes... -- Eduardo