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 9E9A0A04A6; Mon, 24 Jan 2022 01:09:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 66C644288D; Mon, 24 Jan 2022 01:06:12 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id E59BB427CC for ; Mon, 24 Jan 2022 01:06:08 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id d5so12235453pjk.5 for ; Sun, 23 Jan 2022 16:06:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ePoBxhFnXpor/e/eN5ziI+XeClUhfT+oxa/W25G3HY0=; b=Rugm/ZSu4Tn5Wm95/SlucI/8xWTelpTBkerJTX67M2Wc5qMMgWZC4f1Paktupku2Os Zmx+J/MAprH13DobFt+Y+r3VBG6AH1YYrov0Wp6JdNmKVaTHhFLSEB8sLpl4MDsO5HGE zFZ9E1glrsikaiGYLod7F1i7+TgTDSXY5NMalWS0YmF/oeiwKJhVofo0XcPbLTn0fSve RUs4CLe/oQiqcy685/WSD48NPyV4FuUVBNFRoGqRW2S7i6WzjYQmE3AHFff0JoEi1jCz 7cQNfmuh6b30cIPEjss2bxudXM5LrjSd+pydh5jdukCjC2wQWH+sEWLeJ7aOK+kYI7+M 4g+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ePoBxhFnXpor/e/eN5ziI+XeClUhfT+oxa/W25G3HY0=; b=oc7uh7/Khw7ynwB8ztN2vWVQ5rx5Dv/w9qBSHopeFjD7+a+KtVbiKOZpMIWg2Dg6iv ThIcDSzKEQzUxMMCHx1hITh0vITeZlPYTyfOzeAd55v/s9wtdskKYrHWrKtYVrQw5irF gq/fHCS7F9KkwADIE9jlVAr3h+jHoX5ITau/QMFk88bswD5A7OHCVGVbTXr9F0wRdGz3 xU3VghJ/BHgt1VdYRAwdxZD6J3DdU2JdOu+pNQ4HQiSe7B+wHg5U/risYRaBUN4BRyAM EeHO+ISaS7iT07V8/cSPLRU4VoLcWMNwaBToqXHpqq5qGDGCYGyNa00WTnaJkI4Wv0Gq 4G3Q== X-Gm-Message-State: AOAM530l4anrhSChSEMPhan1kkBKRh2zz9LfOaqp0KXNUOO+8y33E72/ VI6RL90+W7qf8vHjJ32ElMzktiXmVrrO5A== X-Google-Smtp-Source: ABdhPJySVKwAZoXxWmRTMljR53beM2tUikZwf8zd39XfmL+HdYRSu5Ajr+sMd5ZMZ9O+z8ISd7pQHg== X-Received: by 2002:a17:902:ea0d:b0:14b:4c26:f42f with SMTP id s13-20020a170902ea0d00b0014b4c26f42fmr2823166plg.125.1642982767578; Sun, 23 Jan 2022 16:06:07 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id ck21sm10935350pjb.51.2022.01.23.16.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:07 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Rahul Lakkireddy Subject: [PATCH 44/82] net/cxgbe: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:40 -0800 Message-Id: <20220124000518.319850-45-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220124000518.319850-1-stephen@networkplumber.org> References: <20220124000518.319850-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Remove redundant NULL pointer checks before free functions found by nullfree.cocci Signed-off-by: Stephen Hemminger --- drivers/net/cxgbe/cxgbe_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/cxgbe/cxgbe_main.c b/drivers/net/cxgbe/cxgbe_main.c index f1ac32270961..ab06e30a5e0f 100644 --- a/drivers/net/cxgbe/cxgbe_main.c +++ b/drivers/net/cxgbe/cxgbe_main.c @@ -463,8 +463,7 @@ void cxgbe_insert_tid(struct tid_info *t, void *data, unsigned int tid, static void tid_free(struct tid_info *t) { if (t->tid_tab) { - if (t->ftid_bmap) - rte_bitmap_free(t->ftid_bmap); + rte_bitmap_free(t->ftid_bmap); if (t->ftid_bmap_array) t4_os_free(t->ftid_bmap_array); -- 2.30.2