Re: [PATCH 11/12] net/netlabel: Correct redundant test

From: David Miller
Date: Mon Jul 27 2009 - 14:36:23 EST


From: Paul Moore <paul.moore@xxxxxx>
Date: Mon, 27 Jul 2009 13:37:29 -0400

> On Monday 27 July 2009 12:15:43 pm Julia Lawall wrote:
>> From: Julia Lawall <julia@xxxxxxx>
>>
>> entry was tested for NULL near the beginning of the function, followed by a
>> return, and there is no intervening modification of its value.
>>
>> A simplified version of the semantic match that finds this problem is as
>> follows: (http://www.emn.fr/x-info/coccinelle/)
...
>> Signed-off-by: Julia Lawall <julia@xxxxxxx>
>
> Good catch, thanks.
>
> Acked-by: Paul Moore <paul.moore@xxxxxx>

Applied to net-next-2.6
--
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/