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 5A25AA04AD; Mon, 24 Jan 2022 18:52:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA7A64295A; Mon, 24 Jan 2022 18:48:31 +0100 (CET) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id 456434294F for ; Mon, 24 Jan 2022 18:48:29 +0100 (CET) Received: by mail-pg1-f180.google.com with SMTP id z131so5004712pgz.12 for ; Mon, 24 Jan 2022 09:48:29 -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=pmG6yMayEtiph+FrBafMWrazhYRcXID3b2Oxjkc6Zrs=; b=8OVoHj3HmGkZKF1Z/IAYfTeCLuBN56zV5tU0C28qUvYWqQoIwEoPcEjK9QpF9j+pWE iROrIn/1CRRedRKJfKRpsio4OTxUFMovpVzmX3BpI0gOD1Usedl42CyV7dHjAOylMxO5 MXsfPkUzL0zOLhK8/mN8yz9rDERQOkt/SCZMWsMiOrqrRpnygozsB1t5O8eLNflR76e3 7MwVAzt0MZcEaDonFbl1iPhPWuMjxuJh1PIjmfH2ezH7z/mQyZ21ONHI1O6vSvso56zb l85XLpVRVrUCNbr4SGriMSd+yH14Hkxbcxs5E6OElkGhg0BKWPshYicpLRt3QjWfGZi1 GJcg== 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=pmG6yMayEtiph+FrBafMWrazhYRcXID3b2Oxjkc6Zrs=; b=jK2KBNJ2XVvHs69hr+fqijN9Qj9ZAAwCgfi4D14aN20KX2S4iSwtRDPaUySnFopE6Y uPq+8f7jiDStfBlLJGO1Y9C6ovZ4M6dcVujSd606j0S38FZOCSFr5qkQIoWwJME/Cpfo U9B+nKuFUlMdQ7hQlcjoyD/Mx5Joz4LDRnRhcVxlG8ZMgAGBL4+/hf3sdj5gqWZekFFh YCO3ely3DuIrlYGDHn7zf3PcjIeFFhkEq7+BZNYjlujJ8JJROBAFIjrnuXG2qkv63xfC /0ltfb7+KZV9rRVWSxU0iCYOCOGVX6EVB+cGUU5OplTNEkKETV9D8peeyAfvXRNl2gpy xRYg== X-Gm-Message-State: AOAM532GpII3DnzOFG/ZLrM1f6XBMl0DS5hJZSeW9JNanrC4HQWwZ2+7 nImKol1Sa9q0aVufNL6rOXUKY4XwKlkQWg== X-Google-Smtp-Source: ABdhPJwT4BNVL8Ap8tNX7W+PmLt/HrxiIhM3D20cnJ7636hZyPOHTwIhjxPGinlEx4IXswsFxcmOVQ== X-Received: by 2002:a05:6a00:1905:b0:4a8:2f86:3f18 with SMTP id y5-20020a056a00190500b004a82f863f18mr15005754pfi.52.1643046508369; Mon, 24 Jan 2022 09:48:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:48:27 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tetsuya Mukawa Subject: [PATCH v2 61/83] net/null: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:46:57 -0800 Message-Id: <20220124174719.14417-62-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/null/rte_eth_null.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index ca03469d0e6d..bb89c1abc4a2 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -717,8 +717,7 @@ rte_pmd_null_probe(struct rte_vdev_device *dev) ret = eth_dev_null_create(dev, &args); free_kvlist: - if (kvlist) - rte_kvargs_free(kvlist); + rte_kvargs_free(kvlist); return ret; } -- 2.30.2