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 E158DA034E; Wed, 9 Feb 2022 20:19:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 58B2F41172; Wed, 9 Feb 2022 20:18:16 +0100 (CET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id E5AC6426DA for ; Wed, 9 Feb 2022 20:18:12 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id 10so3093490plj.1 for ; Wed, 09 Feb 2022 11:18:12 -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=Q3ZS2lcqFAIAIVnHFItTn4bjWqAKv+cW4CHwJCkru18=; b=X/OBHMx5EnJQkjiio8VjCPL9r+0rWG93+y3cuJmuxoRahFpwlziqIY1dGwoC5n0eWq +Utb/hl2h5fVoHW4bptx70JkSEBA+84I47Uxc+/EtuN0g274Ah2EVbiLl06d65CL/BMs N5X+svqCqR4lV8r93wCUc0Ks6sdHGBI40q6BFu0HYofDIasaRGbvHrBc3pEnwqiGguj1 c4Wj07nQUy1mSzva9nn/D3LetyPaX/rXoBTfAJpYw917M1S72ahS4XOujV2u9NO1fPTL QWSDq3xYJibW/V62oW6kC02lo80sobOIKvuo9BNkrpaFPrXTBmKje2TjjEuM90rSPx/e rr9w== 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=Q3ZS2lcqFAIAIVnHFItTn4bjWqAKv+cW4CHwJCkru18=; b=Yr5iv+05VHMqE/ooimnCwVH4mVw3FKoWYTbIyDZh1ARuWUbwAw5IsRHWkzERukXlxt IZhqgE59msrySMBUCIifH9BREUlKvek+b9mwpR22FGDKKi1b2lsBueEzZBcu8j0fwxE0 rpTsnSbL6mgE2fqW0PMJqw5tXaGWUsZk0/i+qpJj+gS6PidiIgczBwbuzNchxxAjFF1k GIHaptqpVikmCTu7WWhYSjRf1MaSLXfF37kBF8TXnTk17dWMmFhc21tmd7aaKsbhz3H1 YKLRw2H0V3tTBuNJ2XvyyX93ShefxJb0O1HWtppQs6SP6tu6uyrSgkTxThRGqBA9rUx3 bXKQ== X-Gm-Message-State: AOAM532K8J9C0DL4eXDv9rIInpHPtSFtJ5Vad2iFwJhd8KffjR3+q5nY 1xr8LAlZh993jk8hnOgq3EsW/7Dy62NCXTEOQrI= X-Google-Smtp-Source: ABdhPJyH7bypVR9UH19gW+EtFzfcNYX8KFXGURUo8e2R5s6xjWwVvxwQKSW21iBZAg17RUL+KolAvQ== X-Received: by 2002:a17:90b:1e43:: with SMTP id pi3mr4205710pjb.41.1644434291963; Wed, 09 Feb 2022 11:18:11 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id u16sm14378401pgh.54.2022.02.09.11.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 11:18:11 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Rahul Lakkireddy Subject: [PATCH v3 17/36] net/cxgbe: remove unnecessary NULL checks Date: Wed, 9 Feb 2022 11:17:29 -0800 Message-Id: <20220209191748.377729-18-stephen@networkplumber.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220209191748.377729-1-stephen@networkplumber.org> References: <20220124000518.319850-1-stephen@networkplumber.org> <20220209191748.377729-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.34.1