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

Commit cd86f420 authored by Julia Lawall's avatar Julia Lawall Committed by Roland Dreier
Browse files

IB: Drop code after return statement



A break after a return serves no purpose, remove it.

Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Reviewed-by: default avatarRichard Genoud <richard.genoud@gmail.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 9824b8f1
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -272,7 +272,6 @@ static struct ib_qp *c2_create_qp(struct ib_pd *pd,
		pr_debug("%s: Invalid QP type: %d\n", __func__,
		pr_debug("%s: Invalid QP type: %d\n", __func__,
			init_attr->qp_type);
			init_attr->qp_type);
		return ERR_PTR(-EINVAL);
		return ERR_PTR(-EINVAL);
		break;
	}
	}


	if (err) {
	if (err) {
+0 −3
Original line number Original line Diff line number Diff line
@@ -1467,7 +1467,6 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd,
		default:
		default:
			nes_debug(NES_DBG_QP, "Invalid QP type: %d\n", init_attr->qp_type);
			nes_debug(NES_DBG_QP, "Invalid QP type: %d\n", init_attr->qp_type);
			return ERR_PTR(-EINVAL);
			return ERR_PTR(-EINVAL);
			break;
	}
	}


	/* update the QP table */
	/* update the QP table */
@@ -2498,7 +2497,6 @@ static struct ib_mr *nes_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
			nes_debug(NES_DBG_MR, "Leaving, ibmr=%p", ibmr);
			nes_debug(NES_DBG_MR, "Leaving, ibmr=%p", ibmr);


			return ibmr;
			return ibmr;
			break;
		case IWNES_MEMREG_TYPE_QP:
		case IWNES_MEMREG_TYPE_QP:
		case IWNES_MEMREG_TYPE_CQ:
		case IWNES_MEMREG_TYPE_CQ:
			nespbl = kzalloc(sizeof(*nespbl), GFP_KERNEL);
			nespbl = kzalloc(sizeof(*nespbl), GFP_KERNEL);
@@ -2572,7 +2570,6 @@ static struct ib_mr *nes_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
			nesmr->ibmr.lkey = -1;
			nesmr->ibmr.lkey = -1;
			nesmr->mode = req.reg_type;
			nesmr->mode = req.reg_type;
			return &nesmr->ibmr;
			return &nesmr->ibmr;
			break;
	}
	}


	return ERR_PTR(-ENOSYS);
	return ERR_PTR(-ENOSYS);