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 1BDF2A04AD; Mon, 24 Jan 2022 18:54:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9E7C642905; Mon, 24 Jan 2022 18:48:53 +0100 (CET) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 9221242848 for ; Mon, 24 Jan 2022 18:48:46 +0100 (CET) Received: by mail-pl1-f175.google.com with SMTP id b15so1760282plg.3 for ; Mon, 24 Jan 2022 09:48: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=1DAoQzlpVAiLi7M5ZMRpDmNBblIj0lzrgX6o7y42vtw=; b=EoOdNKlRzkc0BMt32TCxbzH9xboRBGjWfEzSjQtC5AhmPAfTw76euU0ZeUiQlYi+5d IHJqwV45P01ud6tZ5fNJEqZmTViTlvOk3km2Ie6+LJwarCa+gvmbX13nh20dfiHOJX5M YsRo60d9n2PFOeOG2jqh9/XP1BaXbk+8ZmeTUNZGcFOmhM2AZjQRvhzC8l+7VCO8nhxZ SxsuctzrKoN20S8X3CciMGkPjK9GcjmPMZnWBgZBLteFHI8QsUBRNImNMm3dfvs2LkPg kWq0iAwYPr6bIyvgBmnd0Nn4rwNJjuG5ygzqIBI0SHiP6/2c+ZscyoVKTtUbv5DPLajg EPPw== 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=R46Ve3+6zleLbTOs/9jskmp3xFB0vE8nuqw73dNtfICXIlyuXqK65Ndq4cqPIp1BkY kSergIrmfVCX3ikp1fx0gQiBmn4oJuRDNfcp81RcQNNnB4qEPWPZvTUhgJYbMLeLF2Ru O0iFoxz2dHUHhsK6zt7kF8fsNjroFp0O83bzVbzlXHjoINdrdt/b+1WMhl9yxx5Pgdle Wlq5mOj9Ou4AojgoGqJG3iVhxm6A9ONYrE5EYj7d73STwD4SfiEUNwLpFQIKTdSogVKC C0Gce9IWXePchrYhoVqmM1cmqMlh4kpLgBu3J6wJYdzPcl1xdrcBFQ6vMFldG0DtT9Hp 5JOg== X-Gm-Message-State: AOAM533dpk/lPA6fYZmItyMGv1sYBtlNIxg7PBV9U9OnraqhevbuO2aR 565q89/mD6J49scBDDRKg8JjrIkMd+6J2A== X-Google-Smtp-Source: ABdhPJy+054LUdJM4aUHVR7+J4OtnOCdwyguYG1ewdtf1YpJo/SJ6w5/G/9gvxIIZg45JtHSwYcY8w== X-Received: by 2002:a17:90a:9c2:: with SMTP id 60mr2923323pjo.17.1643046525662; Mon, 24 Jan 2022 09:48:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:48:45 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Fan Zhang , Ashish Gupta Subject: [PATCH v2 77/83] compressdev: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:47:13 -0800 Message-Id: <20220124174719.14417-78-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/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