diff options
author | Li Qiong <liqiong@nfschina.com> | 2022-07-27 17:03:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-08-01 12:45:15 +0200 |
commit | 5121db6afb999d0049d37e911b08cd440f6f8f82 (patch) | |
tree | 669498d17b1e2b9cd3c5483085c7dacfc598eeb8 /net/rds | |
parent | Merge tag 'mlx5-fixes-2022-07-28' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-5121db6afb999d0049d37e911b08cd440f6f8f82.tar.xz linux-5121db6afb999d0049d37e911b08cd440f6f8f82.zip |
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>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/rdma.c b/net/rds/rdma.c index 6f1a50d50d06..fba82d36593a 100644 --- a/net/rds/rdma.c +++ b/net/rds/rdma.c @@ -742,7 +742,7 @@ int rds_cmsg_rdma_args(struct rds_sock *rs, struct rds_message *rm, NULL, 0, rs, &local_odp_mr->r_key, NULL, iov->addr, iov->bytes, ODP_VIRTUAL); if (IS_ERR(local_odp_mr->r_trans_private)) { - ret = IS_ERR(local_odp_mr->r_trans_private); + ret = PTR_ERR(local_odp_mr->r_trans_private); rdsdebug("get_mr ret %d %p\"", ret, local_odp_mr->r_trans_private); kfree(local_odp_mr); |