mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 18:46:53 +07:00
ice: remove unnecessary conditional check
There is no reason to do this conditional check before the assignment so simply remove it. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
893869d5d0
commit
87a2e49889
@ -416,8 +416,7 @@ 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;
|
||||
tmp_vsi_ctx->vsi_num = vsi_ctx->vsi_num;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user