aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2012-07-27 16:05:18 -0400
committerRoland Dreier <roland@purestorage.com>2012-07-27 16:05:18 -0400
commit4e289045286c5f20d7d8f86b18679bad9e9a2003 (patch)
treeac34153d0379e8073b633bb8f1e3d7834e9224fb /drivers/infiniband
parent5dedb9f3bd5bcb186313ea0c0cff8f2c525d4122 (diff)
RDMA/cma: Use PTR_RET rather than if (IS_ERR(...)) + PTR_ERR
Suggested by scripts/coccinelle/api/ptr_ret.cocci. Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/cma.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 5a335b5447c6..7172559ce0c1 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -3064,10 +3064,7 @@ static int cma_join_ib_multicast(struct rdma_id_private *id_priv,
3064 id_priv->id.port_num, &rec, 3064 id_priv->id.port_num, &rec,
3065 comp_mask, GFP_KERNEL, 3065 comp_mask, GFP_KERNEL,
3066 cma_ib_mc_handler, mc); 3066 cma_ib_mc_handler, mc);
3067 if (IS_ERR(mc->multicast.ib)) 3067 return PTR_RET(mc->multicast.ib);
3068 return PTR_ERR(mc->multicast.ib);
3069
3070 return 0;
3071} 3068}
3072 3069
3073static void iboe_mcast_work_handler(struct work_struct *work) 3070static void iboe_mcast_work_handler(struct work_struct *work)