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 15B1CA04AD; Mon, 24 Jan 2022 18:54:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 96E2F429B8; Mon, 24 Jan 2022 18:48:58 +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 41CF142905 for ; Mon, 24 Jan 2022 18:48:51 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id u11so16311354plh.13 for ; Mon, 24 Jan 2022 09:48:51 -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=YZzJGOGnTkJTgesU4GlOejKFxuup+zNHYOIhVR9Gf7vsupG9QI7/oWoom9ua5Tw9EQ 81aoYh01svJ44xTsFvTx0lF6BMHVXujK1aFbHeYHn4ZBz6oZdf4epVou7WQE2f2QRsT9 P5+DtMHKH7yw9Yo5WguTh7eBUfAAPWPZr+g4GzUP8FL6NdKp6bqzF2n4yBQ+BuphM+Tx pbFe+TObmedHgDOmTekwsm13rNnYN5ZyryCSxCFtE7qq7eZBx7ZS8Da9sMePVwrStBwR GSU8hLtML37P4WTFE5Uo36Iuhz6d2qaNLYWLjtVisU3xl7Hgji5Mhl5qyPe9V2S2AEz3 HpKg== 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=CYKiK9YzAFujqTamxouTZUihGnOKK3fQNGtxjea/BcE6BJ3INIK7881EPt505tZKKU k0dMSyTSNDIztDVYUWxBuYUCHpzEjPPMcJb9p0e8Az71HwVeZA/M8dnWrTeqboA3QQls m0jM4QOlMg+dhT5q9f9kWufUrZqj2S77cyRS2GqL0F1lXs1y2/Qf3RhwShW5lsK30Q/k PZhWgL/ry4QIkHv0Jw55RBJjyaUWlwsczemt1FiwbXvQ+6rEyMqopqSpFjUbUj4l6A5S UPuIRXnC8UQpVvtQJ6/Wf1RQmJ6HxU1yPnnrsTkaFm80vG02uWxbc9Y3DoYJ8SMkZeci pAmQ== X-Gm-Message-State: AOAM531oarQ/TYv+avoOG3KlBJ5vvi5x25+76Tmk8gpPqiXNnjzDmOPd zpz0R5l6w1jduIeG6p5VXw6i7GTkzL7RQA== X-Google-Smtp-Source: ABdhPJyfI8PfyOdryc+6RCtFc6k1RxEKfMwHtUP00aidaZV0dH1sf5ol/ZsvwsUZy1V3wZCvBQyAbA== X-Received: by 2002:a17:902:6b02:b0:149:9c7d:3ae7 with SMTP id o2-20020a1709026b0200b001499c7d3ae7mr15287321plk.51.1643046530231; Mon, 24 Jan 2022 09:48:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:48:49 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , David Hunt Subject: [PATCH v2 82/83] power: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:47:18 -0800 Message-Id: <20220124174719.14417-83-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 --- 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