]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba4f1368e7e822a2e620a33205b5b17713e75bde
tree669498d17b1e2b9cd3c5483085c7dacfc598eeb8
parenta6f5390ad41de0452a5992d75155d4afdc2b785b
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