Re: [PATCH 1/9] mtd: cfi_cmdset_0020: Drop unnecessary static

2017-05-11 Thread Brian Norris
On Thu, May 04, 2017 at 10:10:46PM +0200, Julia Lawall wrote: > Drop static on a local variable, when the variable is initialized before > any use on every possible execution path through the function. The static > has no benefit, and dropping it reduces the code size. > > The semantic patch that

[PATCH 1/9] mtd: cfi_cmdset_0020: Drop unnecessary static

2017-05-04 Thread Julia Lawall
Drop static on a local variable, when the variable is initialized before any use on every possible execution path through the function. The static has no benefit, and dropping it reduces the code size. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @ba