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

Commit 6efa6239 authored by Bruce Allan's avatar Bruce Allan Committed by Jeff Kirsher
Browse files

ice: Remove unnecessary node owner check



There is already a check for owner == ICE_SCHED_NODE_OWNER_LAN at the
beginning of ice_sched_update_vsi_child_nodes. Remove the additional
check to address the static analysis tool smatch issue "warn: we tested
'owner' before and it was 'false'".

Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Signed-off-by: default avatarAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: default avatarTony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 4381147d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1576,7 +1576,6 @@ ice_sched_update_vsi_child_nodes(struct ice_port_info *pi, u16 vsi_id, u8 tc,
			return status;
	}

	if (owner == ICE_SCHED_NODE_OWNER_LAN)
	vsi->max_lanq[tc] = new_numqs;

	return status;