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 5035DA04A6; Mon, 24 Jan 2022 01:07:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6A8F42819; Mon, 24 Jan 2022 01:05:44 +0100 (CET) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 7807342812 for ; Mon, 24 Jan 2022 01:05:41 +0100 (CET) Received: by mail-pl1-f178.google.com with SMTP id c9so13906298plg.11 for ; Sun, 23 Jan 2022 16:05:41 -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=MpFsvUFrmqYboBcYsmcff/+YsakMY6WvobYk700vFdw=; b=qeLocHVSieMlExrHmvcUDRpkdR91C1DNl9Q/bjZYbs0Zvi07x+rB7Ek6bTtc4PpHEp weZYT9oeFHNCLND5uFYoFHQK/79vKMeULBd5CEq4cUfNkYaToqJQ7DZPLMExW2NazDUe INbTk8ZA3seGmsgOlevIlHbO7vpTJLwOnOGq/XwlglSNzi/5k63IpMY06H19BrMj4hou vFaoNTdhvRB6zUXj0g8kDL+hw4oXq+DPfxzNDvl3U4kemUs39jVUy6d8mhHIXuTVfPRi jI7qjKXwK5ds/IH6zJeS5yrPiCWHeDTAwAyQNB3u91qCl574QRk2RHmnKsHJnyZbYTCJ IvMA== 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=MpFsvUFrmqYboBcYsmcff/+YsakMY6WvobYk700vFdw=; b=cJUz3iZRHAwhh1ulYFfq7vD5qpRIqg688ogujJVBUAQEqllKvPERzr45tovIwQQGmr FpPRmv8uCBGvG9Dmp6iNRQaK2BNVFWEJhm3maoxazLqIM3gV9JsUzGr1G7RD+bau8Sbc qUO+5brRI4v//KSeEOdsgkW2zBJL9QGUDVXQx2jagu9v5vfsZhKDQZlmrJw2hMMmU8oI gIj7n7iWz6MyEF+TEjBKYmvSYzeiLRXiwShuOs21q1KcoiCHj8Z85CVZvy1ZnZjuqx6r W90Lh8E7bLlQshtwvbEWpUKMkpLBiJs+HfUTg9M6/qSROw5f0kvorjsalJBEYmx/OXK6 fxGw== X-Gm-Message-State: AOAM532LGCbba3CiimIgZWXpYftEaAfdLg/VhHRe/xKkPzH1Nn122PNI +pX1l4Mdev2/F9VPp6ThdA56eXI7wKdP7w== X-Google-Smtp-Source: ABdhPJwnZJtdMKgRsSw7IKVJhGKYYCtLh+On6YKPEdfWd9ln/s41nI0FqW/3t4i/6Q8tvDOotuNvIA== X-Received: by 2002:a17:902:e5c9:b0:14a:8379:bb9f with SMTP id u9-20020a170902e5c900b0014a8379bb9fmr12639846plf.142.1642982740515; Sun, 23 Jan 2022 16:05:40 -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.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:05:40 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nicolas Chautru Subject: [PATCH 18/82] baseband/turbo_sw remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:14 -0800 Message-Id: <20220124000518.319850-19-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/baseband/turbo_sw/bbdev_turbo_software.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/baseband/turbo_sw/bbdev_turbo_software.c b/drivers/baseband/turbo_sw/bbdev_turbo_software.c index c6b1eb8679cb..af7bc416f92e 100644 --- a/drivers/baseband/turbo_sw/bbdev_turbo_software.c +++ b/drivers/baseband/turbo_sw/bbdev_turbo_software.c @@ -1918,8 +1918,7 @@ parse_turbo_sw_params(struct turbo_sw_params *params, const char *input_args) } exit: - if (kvlist) - rte_kvargs_free(kvlist); + rte_kvargs_free(kvlist); return ret; } -- 2.30.2