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 6DE2DA04A6; Mon, 24 Jan 2022 01:12:03 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D69CB42950; Mon, 24 Jan 2022 01:06:45 +0100 (CET) Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by mails.dpdk.org (Postfix) with ESMTP id D9DD6428EA for ; Mon, 24 Jan 2022 01:06:41 +0100 (CET) Received: by mail-pj1-f50.google.com with SMTP id s2-20020a17090ad48200b001b501977b23so14074616pju.2 for ; Sun, 23 Jan 2022 16:06: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=1DAoQzlpVAiLi7M5ZMRpDmNBblIj0lzrgX6o7y42vtw=; b=aV0mnIszHl1E9GeHjB1uuwUUMAJKjaech/u1UsgQ8qzYVgiA2Zgtk9QGVIJ+F6HH6R XXBJRNUUju+a1anoL7mFO43x7m/SJsPs4QsFpe2VslXk9w8qd+I3spZI5YNPJ2O57l6s jIjmO2NbFyvBVb/Z7II5Ur83M40I/3HawRALKuPmK+ubs5yH0P/W/zkIzCDgv3V9jetZ P92595za30GL3jL006dJdmDhTah1UYesZ/IduoZuwIJK5OVBQTkJulJCeTAnOYILupyg uJzswHMBE3iLblF7DlxT8qkJxucE48LxpDPsMiH8zGxZ/MntbbngKevpyJ2aWCYQDNBP qd1A== 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=1DAoQzlpVAiLi7M5ZMRpDmNBblIj0lzrgX6o7y42vtw=; b=H3HSTFUiGx9H414hZfPXYPHbYGecmUaQKJ60JywLqBEqRK3AT4iPz5YJg9UEo6YWsO w22+836wg2CH7a92KarVQyRo/Njz7htGgUsE7JgJNs2Rmc6+4hfWv6QDLByyzZiEYFht xDfgUnItBvZfua9P1yjQnVT3E803hZL/O/N/gPlfWJ+X6lbLBOJLEOJR1ppXOOBWUDPA KkaDWeafOAAH1oFgH1K7mpjfoCV3XuzOtRNnCFW45vfvzaj5MWqATmRSfG1r2aXmGnzC Rzz5cYvqWs+rOCdqcAu5u7bi1toyypTMwDV8hnX7dgPHmimso6NPBojpE6XB+4VE0bL1 5ezQ== X-Gm-Message-State: AOAM532QU7i7zCHzcafMhaMB5QpD7ZMamb8+HdR7LAnm9deCnVv/CKR3 jWgjd0zrFvCeRcM4hX9fRi8GoCN3nBGdRA== X-Google-Smtp-Source: ABdhPJyC9xm9wZ8KaZTsl8VlzYL6hshVYcTV9OiUVsyrkwp5MqJ5qg5XvVt0i09AbNJN1BrS/U9MiA== X-Received: by 2002:a17:903:124b:b0:149:b7bf:a2ad with SMTP id u11-20020a170903124b00b00149b7bfa2admr12769584plh.53.1642982800856; Sun, 23 Jan 2022 16:06: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.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:40 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Fan Zhang , Ashish Gupta Subject: [PATCH 76/82] compressdev: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:05:12 -0800 Message-Id: <20220124000518.319850-77-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/compressdev/rte_compressdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/compressdev/rte_compressdev.c b/lib/compressdev/rte_compressdev.c index 2e9218af68f6..d4f7d4d3daf2 100644 --- a/lib/compressdev/rte_compressdev.c +++ b/lib/compressdev/rte_compressdev.c @@ -405,8 +405,7 @@ rte_compressdev_queue_pairs_release(struct rte_compressdev *dev) return ret; } - if (dev->data->queue_pairs != NULL) - rte_free(dev->data->queue_pairs); + rte_free(dev->data->queue_pairs); dev->data->queue_pairs = NULL; dev->data->nb_queue_pairs = 0; -- 2.30.2