rxrpc: fix ptr_ret.cocci warnings
authorWu Fengguang <fengguang.wu@intel.com>
Sat, 4 Jun 2016 23:17:19 +0000 (07:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2016 22:30:21 +0000 (15:30 -0700)
commitfa54cc70ed2eddd96773ffdf4d96d23ea7483e56
tree2d6aa18b12be9227c0ae1c0a87580ee7edfe42fd
parent29a36611e9f10f629b4d7920418fcb8f5e50ae75
rxrpc: fix ptr_ret.cocci warnings

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@redhat.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/rxkad.c