Re: [PATCH 11/11] drivers/net/ethernet/intel: Remove useless return variables

2014-06-01 Thread Jeff Kirsher
On Sat, 2014-05-31 at 10:14 -0300, Peter Senna Tschudin wrote: > 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

[PATCH 11/11] drivers/net/ethernet/intel: 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