net/rds: Use PTR_ERR instead of IS_ERR for rdsdebug()
authorLi Qiong <liqiong@nfschina.com>
Wed, 27 Jul 2022 15:03:41 +0000 (23:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2022 10:45:15 +0000 (11:45 +0100)
commit5121db6afb999d0049d37e911b08cd440f6f8f82
tree669498d17b1e2b9cd3c5483085c7dacfc598eeb8
parent9e98f8c7707f8bf4552806b17e42c54548d29527
net/rds: Use PTR_ERR instead of IS_ERR for rdsdebug()

If 'local_odp_mr->r_trans_private' is a error code,
it is better to print the error code than to print
the value of IS_ERR().

Signed-off-by: Li Qiong <liqiong@nfschina.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/rdma.c