Received: from eggs.gnu.org ([2001:4830:134:3::10]:50701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCQ44-0001gC-SR for qemu-devel@nongnu.org; Mon, 13 Jun 2016 07:30:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCQ42-0002kW-Tf for qemu-devel@nongnu.org; Mon, 13 Jun 2016 07:29:55 -0400 From: Markus Armbruster References: <1465589538-24998-1-git-send-email-ehabkost@redhat.com> <1465589538-24998-4-git-send-email-ehabkost@redhat.com> Date: Mon, 13 Jun 2016 13:29:47 +0200 In-Reply-To: <1465589538-24998-4-git-send-email-ehabkost@redhat.com> (Eduardo Habkost's message of "Fri, 10 Jun 2016 17:12:18 -0300") Message-ID: <87r3c1wclw.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain 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: Eduardo Habkost Cc: qemu-devel@nongnu.org, kwolf@redhat.com, qemu-block@nongnu.org, mreitz@redhat.com, borntraeger@de.ibm.com, cornelia.huck@de.ibm.com 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[*]. 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...