Commit 87a2e498 authored by Bruce Allan's avatar Bruce Allan Committed by Jeff Kirsher
Browse files

ice: remove unnecessary conditional check



There is no reason to do this conditional check before the assignment so
simply remove it.

Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 893869d5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -416,7 +416,6 @@ ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
		ice_save_vsi_ctx(hw, vsi_handle, tmp_vsi_ctx);
	} else {
		/* update with new HW VSI num */
		if (tmp_vsi_ctx->vsi_num != vsi_ctx->vsi_num)
		tmp_vsi_ctx->vsi_num = vsi_ctx->vsi_num;
	}