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 AD1C9A04AD; Mon, 24 Jan 2022 18:48:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 98B2E42842; Mon, 24 Jan 2022 18:47:43 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 5DC2842834 for ; Mon, 24 Jan 2022 18:47:40 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id l16so17143154pjl.4 for ; Mon, 24 Jan 2022 09:47:40 -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=Bgx/O/LgDBwfpZvv8sHETKfu+pFk8tRr98NibVIB3lI=; b=RjrYDiirJIeEqNxfCluDISacF8QhMsQLc1MAsu7MVMlk/JNgoHJh4gi6/2hQjhGCyI CRjQphpk+cM4v+Qn02seK8vx5gqsPTsQvfI3aJ6sLV2wGxPb7p4i5YO95NTMOhscRbdt 5Oh0V+sxwVutBOdPpGsbfThldkssK1rJWhc5ETzFQOlLRsVITCEsDE/TZgsS6Kl9mi/u ZdvJqKUrj0HiPWQXPaNewsVfLcDjzmwiI8m6kgT/uC/nghR/oV1hDWQBo5CccrqujnjF VoTvujkPL6XO7t1QKkbnIn4tX1sbVdQiPNB7HmhYTqmuvZtHMMf9bxoT/vGBXdCncV8Z IHJA== 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=Bgx/O/LgDBwfpZvv8sHETKfu+pFk8tRr98NibVIB3lI=; b=jUfRF0RXT5Un4J4dN8oJ8Nm7E8lw6tZIdUK6FTz8LQUv6hDB/u3bbuhn/5xXFok0pE YzpvL11V2jOGMRas44h13VP6LXONZjFwBV5YUZNkRtvONcdckw30ssC/oW6QyZxArWTK s0iGNFY45q5g15Hk5pljgnjFEgll+ZBT3JSkEmsEaaDMQxrdzFgT8DUdgHcBTx4IaVIH K+PwsKKrGnMCMOEt4lPKsC/xZpaNjzIhFwCYNIkOrApUgzPRlpo2lxQmr7qXk9R0X3PM 16810aUqclGFXM2eBmvDFcW94lO0qIglqu3GZQlB1+x9cSTVmI2lI50RzUibOK3wAThA MPnw== X-Gm-Message-State: AOAM531el5n38V1/PAY8xUhEmABu2LBSNtBKfFRTHulpw6cDVyyN0eg7 azTZcpjqX3l+muO5GddWfXEF610zCQEwag== X-Google-Smtp-Source: ABdhPJz/w5b1nUfyUxK7XjO5tttT0Pgf7+tWUC8qwsPcIxSxUO6w3H8aYfnG/SvAkd9F14ONEUQu1g== X-Received: by 2002:a17:90b:3a8b:: with SMTP id om11mr2954129pjb.176.1643046459383; Mon, 24 Jan 2022 09:47:39 -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.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:47:38 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nicolas Chautru Subject: [PATCH v2 16/83] baseband/acc100 remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:46:12 -0800 Message-Id: <20220124174719.14417-17-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/baseband/acc100/rte_acc100_pmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/baseband/acc100/rte_acc100_pmd.c b/drivers/baseband/acc100/rte_acc100_pmd.c index 1c6080f2f895..f86474f7e099 100644 --- a/drivers/baseband/acc100/rte_acc100_pmd.c +++ b/drivers/baseband/acc100/rte_acc100_pmd.c @@ -4402,8 +4402,7 @@ poweron_cleanup(struct rte_bbdev *bbdev, struct acc100_device *d, } printf("Number of 5GUL engines %d\n", numEngines); - if (d->sw_rings_base != NULL) - rte_free(d->sw_rings_base); + rte_free(d->sw_rings_base); usleep(ACC100_LONG_WAIT); } -- 2.30.2