[PATCH 2/2] Remove unnecessary parentheses around return values in functions

Daniel Stone daniel at fooishbar.org
Mon Jun 7 09:45:25 PDT 2010


On Sun, Jun 06, 2010 at 09:18:40PM +0700, Mikhail Gusarov wrote:
> This patch was generated by the following Perl code:
> 
> perl -i -pe 's/([^_])return\s*\(\s*([^(]+?)\s*\)s*;(\s+(\n))?/$1return $2;$4/g;'
> 
> Signed-off-by: Mikhail Gusarov <dottedmag at dottedmag.net>

My hero! This has irritated me enough in the past that I actually read
through the entire patch.

Reviewed-by: Daniel Stone <daniel at fooishbar.org>

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100607/36674c09/attachment.pgp>


More information about the xorg-devel mailing list