Re: [PATCH] rxrpc: fix ptr_ret.cocci warnings

From: David Howells
Date: Thu Jun 09 2016 - 10:38:43 EST


kbuild test robot <fengguang.wu@xxxxxxxxx> wrote:

> net/rxrpc/rxkad.c:1165:1-3: WARNING: PTR_ERR_OR_ZERO can be used
>
>
> Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
>
> Generated by: scripts/coccinelle/api/ptr_ret.cocci
>
> CC: David Howells <dhowells@xxxxxxxxxx>
> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>

Acked-by: David Howells <dhowells@xxxxxxxxxx>