Re: [PATCH 01/24] staging: ath6kl: Remove NULL check before kfree

From: Luis R. Rodriguez
Date: Mon Mar 14 2011 - 13:47:49 EST


On Sat, Mar 12, 2011 at 9:28 PM, Ilia Mirkin <imirkin@xxxxxxxxxxxx> wrote:
> This patch was generated by the following semantic patch:
> // <smpl>
> @@ expression E; @@
> - if (E != NULL) { kfree(E); }
> + kfree(E);
>
> @@ expression E; @@
> - if (E != NULL) { kfree(E); E = NULL; }
> + kfree(E);
> + E = NULL;
> // </smpl>
>
> Signed-off-by: Ilia Mirkin <imirkin@xxxxxxxxxxxx>

This is pretty awesome, thanks for using spatch and submitting stuff
for ath6kl :)

Acked-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx>

Greg, I'll rebase my next series on top of this patch.

Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/