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

David Miller
2009-07-27T18:36:17Z

From: Paul Moore <paul.moore@hp.com>
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@diku.dk>
>>
>> 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@diku.dk>
>
> Good catch, thanks.
>
> Acked-by: Paul Moore <paul.moore@hp.com>

Applied to net-next-2.6