From: Qi Zhang Date: Mon, 10 May 2021 03:18:35 +0000 (+0800) Subject: net/ice/base: remove dead code in capabilities parsing X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=07415c3ce610123a6c8bceaf1e6180a9dd1f3d02;p=dpdk.git net/ice/base: remove dead code in capabilities parsing Execution cannot reach this statement: "break;". Remove the unnecessary if branch. Coverity issue: 370613 Fixes: 2913bc4155d2 ("net/ice/base: sign external device package programming") Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index ac412a1aa7..cf0a7d4e7f 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -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] =