[PATCH 1/1] mfd: Remove unused variable using Coccinelle

Linus Walleij linus.walleij at linaro.org
Mon Oct 10 04:39:44 PDT 2016


On Mon, Oct 10, 2016 at 3:36 AM, Shyam Saini <mayhs11saini at gmail.com> wrote:

> The variable err is initialized but never used otherwise.
>
> The semantic patch that makes this change is as follows:
>
> // <smpl>
> @@
> type T;
> identifier i;
> constant C;
> @@
>
> (
> extern T i;
> |
> - T i;
>   <+... when != i
> - i = C;
>   ...+>
> )
> // </smpl>
>
> Signed-off-by: Shyam Saini <mayhs11saini at gmail.com>

Acked-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list