Re: [PATCH 2/11] cw1200: Remove useless return variables

2014-05-31 Thread Peter Senna Tschudin
On Sat, May 31, 2014 at 12:17 PM, walter harms wrote: > > > Am 31.05.2014 15:14, schrieb Peter Senna Tschudin: >> This patch remove variables that are initialized with a constant, >> are never updated, and are only used as parameter of return. >> Return the constant instead of using a variable. >>

Re: [PATCH 2/11] cw1200: Remove useless return variables

2014-05-31 Thread walter harms
Am 31.05.2014 15:14, schrieb Peter Senna Tschudin: > This patch remove variables that are initialized with a constant, > are never updated, and are only used as parameter of return. > Return the constant instead of using a variable. > > Verified by compilation only. > > The coccinelle script th

[PATCH 2/11] cw1200: Remove useless return variables

2014-05-31 Thread Peter Senna Tschudin
This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that find and fixes this issue is: // @@ type T; constant C; identif