ice: remove redundant non-null check in ice_setup_pf_sw()
Remove a redundant null check, as vsi could not be null at this point. Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
8aa4318c3a
commit
d5a6df4437
@ -3780,13 +3780,11 @@ static int ice_setup_pf_sw(struct ice_pf *pf)
|
||||
unroll_napi_add:
|
||||
ice_tc_indir_block_unregister(vsi);
|
||||
unroll_cfg_netdev:
|
||||
if (vsi) {
|
||||
ice_napi_del(vsi);
|
||||
if (vsi->netdev) {
|
||||
clear_bit(ICE_VSI_NETDEV_ALLOCD, vsi->state);
|
||||
free_netdev(vsi->netdev);
|
||||
vsi->netdev = NULL;
|
||||
}
|
||||
ice_napi_del(vsi);
|
||||
if (vsi->netdev) {
|
||||
clear_bit(ICE_VSI_NETDEV_ALLOCD, vsi->state);
|
||||
free_netdev(vsi->netdev);
|
||||
vsi->netdev = NULL;
|
||||
}
|
||||
|
||||
unroll_vsi_setup:
|
||||
|
Loading…
x
Reference in New Issue
Block a user