Re: [PATCH] net/rxrpc: Use an IS_ERR test rather than a NULL test

From: David Miller
Date: Wed Aug 13 2008 - 05:41:21 EST


From: Julien Brunel <brunel@xxxxxxx>
Date: Fri, 8 Aug 2008 13:55:21 +0200

> In case of error, the function rxrpc_get_transport returns an ERR
> pointer, but never returns a NULL pointer. So after a call to this
> function, a NULL test should be replaced by an IS_ERR test.
>
> A simplified version of the semantic patch that makes this change is
> as follows:
> (http://www.emn.fr/x-info/coccinelle/)
...
> Signed-off-by: Julien Brunel <brunel@xxxxxxx>
> Signed-off-by: Julia Lawall <julia@xxxxxxx>

Applied, thank you.
--
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/