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 DB278A04AD; Mon, 24 Jan 2022 18:51:31 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27E69428F7; Mon, 24 Jan 2022 18:48:15 +0100 (CET) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id 4013B42838 for ; Mon, 24 Jan 2022 18:48:12 +0100 (CET) Received: by mail-pf1-f180.google.com with SMTP id v74so13428537pfc.1 for ; Mon, 24 Jan 2022 09:48: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=ePoBxhFnXpor/e/eN5ziI+XeClUhfT+oxa/W25G3HY0=; b=uxSVdgQ07isHk/XpV7+CASeU9GG2QH/vHViss142XyKfbkwrYAfRNCFZ8NcxsyYlBa ellF4l15uESZOpsPOf1PL8iKUjfuMtfScHD5RbtZlT3TH3Ka++OfzQZau36LZy6x6r8g bzS2PCw9pSZ7en3IIkbQnybtv7SpO9CCMCnqlH6aQLuwvITN82MHgKB4WLCWmNuNkI4W Lp+yWT/PJQ5/opN1DqyxU2H6ARV/CiiRD8vHWFD2J5eYuRuPvaftHF1AbcEaXl3FFg4S YETCfC8ntvnmxhSIJaEqZvSivDirSXVjdU6nrKjJ3cIng7f2srvi9xh+UwMdryPqnFwF YVIA== 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=NbKQc+7S4Ag4gRg2INMxCGW5MMr6E90XB1W2WvrmX8Z6r/KCT35CDjMDiu3yW1BMaq ReeU+x58bPOsnkRqW7f5mkx/pLYePK4RXO82/uuM1nNUGz3BWABI5pGLvNPft8XNzscM YhG2V0CjpD40EPk9+kIsmkHMNtYvdybl3Q8jaX5dOBy3h2IAEs8kb+yqOD+r6yZHu+YX gZ+Vqc3gIlL52s10n6+F5O+KQ4v5Qvj3IzlwmS8yF64PFdgBPXy38S4kkMxtkHHj4MDS nHR4FRt6o4PDyB1vlwGBPud2WBUKu2+AgyKcc2+/qifag4XaeNoiiqRtY/6LbsTy6Ws7 QU9A== X-Gm-Message-State: AOAM533oG6a+vm9GUMj5GzxZ03f/2rsp/ne/BbMHteiVRoB4fT0BfBZY B97NM8gJpeqDFVAx2q0C1PxePUxly+A1lQ== X-Google-Smtp-Source: ABdhPJyVt3/PHjWYPeL6R7BcoT5KPQPGhFOBXEBvMBOc8+icdSzj74H3QSPTviFCvYgFwkC+QHIWGA== X-Received: by 2002:a63:9142:: with SMTP id l63mr12631306pge.476.1643046491201; Mon, 24 Jan 2022 09:48:11 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id q7sm15835082pfs.37.2022.01.24.09.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:48:10 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Rahul Lakkireddy Subject: [PATCH v2 45/83] net/cxgbe: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:46:41 -0800 Message-Id: <20220124174719.14417-46-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220124174719.14417-1-stephen@networkplumber.org> References: <20220124000518.319850-1-stephen@networkplumber.org> <20220124174719.14417-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