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

Commit e80bd98d authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Doug Ledford
Browse files

RDMA/i40iw: fix duplicated code for different branches



Refactor code to avoid identical code for different branches.

Addresses-Coverity-ID: 1357356
Reviewed-by: default avatarYuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: default avatarShiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent f300ba2d
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -443,9 +443,6 @@ enum i40iw_status_code i40iw_vchnl_recv_pf(struct i40iw_sc_dev *dev,
	if (!dev->vchnl_up)
		return I40IW_ERR_NOT_READY;
	if (vchnl_msg->iw_op_code == I40IW_VCHNL_OP_GET_VER) {
		if (vchnl_msg->iw_op_ver != I40IW_VCHNL_OP_GET_VER_V0)
			vchnl_pf_send_get_ver_resp(dev, vf_id, vchnl_msg);
		else
		vchnl_pf_send_get_ver_resp(dev, vf_id, vchnl_msg);
		return I40IW_SUCCESS;
	}