From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6B4A7A0C3F; Mon, 10 May 2021 05:19:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 53BAE40140; Mon, 10 May 2021 05:19:46 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 768BC4003E for ; Mon, 10 May 2021 05:19:45 +0200 (CEST) IronPort-SDR: +ltZoT86jLvag9eVJHSYLOWIHI5bYfXu0vz1VYWlq+gt2w/7S/zc00RBbpRfTBpMl847MnA7Vi YbpY7/hdFF7Q== X-IronPort-AV: E=McAfee;i="6200,9189,9979"; a="178689454" X-IronPort-AV: E=Sophos;i="5.82,286,1613462400"; d="scan'208";a="178689454" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2021 20:19:44 -0700 IronPort-SDR: YuDgsoaOSslr6FUJovz6zcMsWSV3l6Ex0wvrSIAitKgZZDWwkYvLEDAnkDkbivfIw61uac/ub2 tITZOAQZw0sQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,286,1613462400"; d="scan'208";a="433585822" Received: from dpdk51.sh.intel.com ([10.67.111.142]) by fmsmga008.fm.intel.com with ESMTP; 09 May 2021 20:19:43 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang Date: Mon, 10 May 2021 11:23:26 +0800 Message-Id: <20210510032326.3163171-1-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net/ice/base: remove unnecessary code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Coverty issue: 370613 Execution cannot reach this statement: "break;". Remove the unnecessary if branch. Fixes: 2913bc4155d2 ("net/ice/base: sign external device package programming") Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_common.c | 3 --- 1 file changed, 3 deletions(-) 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] = -- 2.26.2