Re: [PATCH 7/15] drivers/crypto/atmel-aes.c: adjust duplicate test

From: David Miller
Date: Mon Jan 21 2013 - 13:19:01 EST


From: Julia Lawall <Julia.Lawall@xxxxxxx>
Date: Mon, 21 Jan 2013 14:02:51 +0100

> From: Julia Lawall <Julia.Lawall@xxxxxxx>
>
> Delete successive tests to the same location. The code tested the result
> of a previous allocation, that itself was already tested. It is changed to
> test the result of the most recent allocation.
>
> A simplified version of the semantic match that finds this problem is as
> follows: (http://coccinelle.lip6.fr/)
...
> Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
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/