[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1392273125.2214.25.camel@joe-AO722>
Date: Wed, 12 Feb 2014 22:32:05 -0800
From: Joe Perches <joe@...ches.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: Re: [PATCH net-next] net: remove unnecessary return's
On Wed, 2014-02-12 at 20:51 -0800, Stephen Hemminger wrote:
> One of my pet coding style peeves is the practice of
> adding extra return; at the end of function.
> Kill several instances of this in network code.
> I suppose some coccinelle wizardy could do this automatically.
Maybe, but grep version 2.5.4 will show most of them.
$ grep-2.5.4 -rP --include=*.[ch] "return;\n}" *
[...]
Fixing them has to make sure that there's no
label before the close brace.
gcc has to have a statement before the close brace
of a void return after a label.
label:
}
must be:
label:
;
}
to compile.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists