net/ice/base: remove dead code in capabilities parsing
Execution cannot reach this statement: "break;".
Remove the unnecessary if branch.
Coverity issue: 370613
Fixes: 2913bc4155
("net/ice/base: sign external device package programming")
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
This commit is contained in:
parent
6793ebdb14
commit
07415c3ce6
@ -2009,9 +2009,6 @@ ice_parse_common_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps,
|
||||
{
|
||||
u8 index = cap - ICE_AQC_CAPS_EXT_TOPO_DEV_IMG0;
|
||||
|
||||
if (index >= ICE_EXT_TOPO_DEV_IMG_COUNT)
|
||||
break;
|
||||
|
||||
caps->ext_topo_dev_img_ver_high[index] = number;
|
||||
caps->ext_topo_dev_img_ver_low[index] = logical_id;
|
||||
caps->ext_topo_dev_img_part_num[index] =
|
||||
|
Loading…
Reference in New Issue
Block a user