Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e289045 authored by Fengguang Wu's avatar Fengguang Wu Committed by Roland Dreier
Browse files

RDMA/cma: Use PTR_RET rather than if (IS_ERR(...)) + PTR_ERR



Suggested by scripts/coccinelle/api/ptr_ret.cocci.

Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 5dedb9f3
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -3064,10 +3064,7 @@ static int cma_join_ib_multicast(struct rdma_id_private *id_priv,
						id_priv->id.port_num, &rec,
						id_priv->id.port_num, &rec,
						comp_mask, GFP_KERNEL,
						comp_mask, GFP_KERNEL,
						cma_ib_mc_handler, mc);
						cma_ib_mc_handler, mc);
	if (IS_ERR(mc->multicast.ib))
	return PTR_RET(mc->multicast.ib);
		return PTR_ERR(mc->multicast.ib);

	return 0;
}
}


static void iboe_mcast_work_handler(struct work_struct *work)
static void iboe_mcast_work_handler(struct work_struct *work)