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 5073FA034F; Mon, 24 Jan 2022 01:10:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF68D428D7; Mon, 24 Jan 2022 01:06:22 +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 D8AE9428C3 for ; Mon, 24 Jan 2022 01:06:17 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id n16-20020a17090a091000b001b46196d572so14811877pjn.5 for ; Sun, 23 Jan 2022 16:06:17 -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=4e0zeGJiziv50Z5VPCtWWft+qdFSllPtblXUEw0LgiU=; b=137u+BS4SZzv+uKYWjjxbRn+QltsQXi+K4Bx7g4AsmLLJ+MnlOBvq2Uc3PHJT4GjJP +QA3/Z5mU3SMe4s2+Hs7tn4PIBt/9yWoffkukzgXOYdQhBVxb4/xesLzT34aGpBZpnUc eNPaEnM0uaCrZjA7XtCVlT79NQQjODhig4+fpfUMat+dEnnMW+FswU7CPizxP8vPo9k0 8dnh+xwWYzobrRozbv4csumQHgp78zTpFzYtnjbn/N5yd7Gd46fscrvWjot6NgbHpbye Uc85ucEOKnRZmzsVMnL81pRMggDHuZ7FNM/2Oi8cLyJyJHRgHbCSPG1soN1wNrRPzIbl jk8g== 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=4e0zeGJiziv50Z5VPCtWWft+qdFSllPtblXUEw0LgiU=; b=y7PoLXkviDCnBCcg2L/wUnn36+yv0EFDBM+Q9nA8VEKl/R/b6w/NcbhldEj+owduGn TA65x02Ovm1MbBpVjA+UAx0zriNgFvUI20xaklrGRi0H4dn7zDpddavi7XhsJYXl81eO bt7QWh3i6RCtC8zTebxO5xeDlfSj6hdI7W2qTDwsk8IeVHAoCpTQ6hOr1xMoDPEtoeVZ XL2MohtRh1E34uD31X63jBjeMMJCDoiTnCXhx+p50cPEokVuN1Kj+X2BMbTuD1lTZmBc M1zComU1lHZ+tznCB7mLjIMp9uA8P1mk8YHFLQ9yiQ0OcnryVQ3DvSJyNZbeCHk08+u3 oxTQ== X-Gm-Message-State: AOAM532Q//1RhZrtE+ktqV6YytmVJHz8g6GcQySizV05MFjZ3jhfYdZR VrLQF8QCdJdVrgO89beCusYRSLWBDDvyzw== X-Google-Smtp-Source: ABdhPJwkE/dkyxjghjKuHxKSPyE7Zy+2OJoEPCe6iY29mQdYFL2QUKoaVRb6UIQ/YcvdxDOI911A6A== X-Received: by 2002:a17:90b:3110:: with SMTP id gc16mr10618228pjb.108.1642982776875; Sun, 23 Jan 2022 16:06:16 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:16 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Haiyue Wang Subject: [PATCH 53/82] net/igc: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:49 -0800 Message-Id: <20220124000518.319850-54-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/igc/igc_flow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/igc/igc_flow.c b/drivers/net/igc/igc_flow.c index 66053060af5a..88978ee0e849 100644 --- a/drivers/net/igc/igc_flow.c +++ b/drivers/net/igc/igc_flow.c @@ -776,8 +776,7 @@ igc_flow_create(struct rte_eth_dev *dev, if (ret) { /* check and free the memory */ - if (flow) - rte_free(flow); + rte_free(flow); rte_flow_error_set(error, -ret, RTE_FLOW_ERROR_TYPE_HANDLE, NULL, -- 2.30.2