projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dedb9f
)
RDMA/cma: Use PTR_RET rather than if (IS_ERR(...)) + PTR_ERR
author
Fengguang Wu
<fengguang.wu@intel.com>
Fri, 27 Jul 2012 20:05:18 +0000
(13:05 -0700)
committer
Roland Dreier
<roland@purestorage.com>
Fri, 27 Jul 2012 20:05:18 +0000
(13:05 -0700)
Suggested by scripts/coccinelle/api/ptr_ret.cocci.
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cma.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/cma.c
b/drivers/infiniband/core/cma.c
index 5a335b5447c668856da82fbdb98a49c0b28e89e1..7172559ce0c1486042a0d5396d8898a10cd31663 100644
(file)
--- 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,
id_priv->id.port_num, &rec,
comp_mask, GFP_KERNEL,
cma_ib_mc_handler, mc);
- if (IS_ERR(mc->multicast.ib))
- return PTR_ERR(mc->multicast.ib);
-
- return 0;
+ return PTR_RET(mc->multicast.ib);
}
static void iboe_mcast_work_handler(struct work_struct *work)