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 7AF96A04A6; Mon, 24 Jan 2022 01:12:28 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C5E414296E; Mon, 24 Jan 2022 01:06:50 +0100 (CET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 00B7442959 for ; Mon, 24 Jan 2022 01:06:47 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id j16so3366071plx.4 for ; Sun, 23 Jan 2022 16:06:46 -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=BD/62vUpe6M1CCDtT9zTuTpgci3yYRAHi5TUuvAGKPg=; b=SS6Q98k/6roX5/Kw1dy2it1oNEzx/sohH40MQoKSfS7PGYYDC1DR7EVPwo3cOVtpO3 ODBTGFXJd3KwEi2fFU60qqyUaM06NqId0s+l+Y1+BVejteDxvUdt00unM/y20gsrxrJS j2l1xytQcD3WN2VIFBiWrRZETlpO8rsTn1YmO/IiZYbfLkKpBwmhwMMaPFBzN72uyo2M ssfsTvfcNOWsT/8MAavH8Z1zNN0PGzj8zwgGvvcU5XWmSTcxX3289dRnWRY7SjHCoM7d 23fU6ANCvn0UJvH+u+UrM9IsjIdOzr2F1a0N0fYeBD9EIqu6nFVnbZVIxj/moOCRBLZw vpZg== 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=BD/62vUpe6M1CCDtT9zTuTpgci3yYRAHi5TUuvAGKPg=; b=724KbEcSCjbisjUgl9WKoEALUobCeycDdMdW3XqDEOaPq5l9nBMqRMTFjhbOuQR2BX OW8vnQHhMg3wnAGjmkw11zGSeXMEIm0T/yzahYbQW0cI2CzVm+EavXh6/SGhLhhWiDD3 gl9JKg73+8dmX6ljUDLnloj3jKr0wTJ2bI6xcvA0PSHSig6lxUk3cy1Ajthe+LQ+PYDN cIVqqrZuoTUys2BlSVaNN22mExY52BKGBxf6oDRtsS3bWruz3rhOP2fTnG8WCpYNju6T DJdgXeeT5kQLmyCDA7WuAbO07qZ7NlQAsaCFOJLMJkdaP4VdXS0MyLbz8TnIZBGMSpi1 MO1A== X-Gm-Message-State: AOAM532ZBN84KOJHJJQem7hws8KDgKtECPljr5t2GWt0OlPPGwsPqOhl YRauiCaiGCy3+e1GQPtbMR097ZdSBoMFyQ== X-Google-Smtp-Source: ABdhPJwGx2wekl2J/xeEO+ZHMVCW9IO2+zmXPKa9TrRY2o37Hh2zecJ/dqY7ogjSHhGBxcAmhl/v3w== X-Received: by 2002:a17:90a:470a:: with SMTP id h10mr10654100pjg.25.1642982806028; Sun, 23 Jan 2022 16:06:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:45 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , David Hunt Subject: [PATCH 81/82] power: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:05:17 -0800 Message-Id: <20220124000518.319850-82-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 --- lib/power/rte_power_empty_poll.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/power/rte_power_empty_poll.c b/lib/power/rte_power_empty_poll.c index c4b5de9601cf..2261ce7820f6 100644 --- a/lib/power/rte_power_empty_poll.c +++ b/lib/power/rte_power_empty_poll.c @@ -457,8 +457,7 @@ rte_power_empty_poll_stat_free(void) RTE_LOG(INFO, POWER, "Close the Empty Poll\n"); - if (ep_params != NULL) - rte_free(ep_params); + rte_free(ep_params); } int -- 2.30.2