rxrpc: checking for IS_ERR() instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Jul 2016 14:47:01 +0000 (15:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 21:16:25 +0000 (14:16 -0700)
commit7acef60455c4814a52afb8629d166a3b4dfa0ebb
tree529955a2c99c075f3c8e6940f83ff601aa1cf3bf
parent77501a79cec40eac65c59ee7af3f786c703ead9c
rxrpc: checking for IS_ERR() instead of NULL

The rxrpc_lookup_peer() function returns NULL on error, it never returns
error pointers.

Fixes: 8496af50eb38 ('rxrpc: Use RCU to access a peer's service connection tree')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/conn_service.c