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 1EDC8A04AD; Mon, 24 Jan 2022 18:52:40 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA9164292C; Mon, 24 Jan 2022 18:48:28 +0100 (CET) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 226F242813 for ; Mon, 24 Jan 2022 18:48:26 +0100 (CET) Received: by mail-pf1-f175.google.com with SMTP id 192so13240959pfz.3 for ; Mon, 24 Jan 2022 09:48:26 -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=dlkTRiPlJteixPbAsLxpIIe6vqw6XBxuk3//t0LHTFA=; b=lBffr9O6qTZnazUzitz2IBZxd7IwvLwHlnDOyKu62Rg3qJZeYAhPtTt+WRop/zIqQr sLnZKlXbYYGGUVDZjTSs8o3jg5IGDhMKmmfuf21ygMgKre1+Xl5+dd71fpctht5KwGEO J+61K4572H0PTwr4qq1RpR4QUnHq6TBcRj4+SLo5lfEimo6ikkBW/fzR978kaI4vfg4B VWP2/mEGFegBUL8aDJONBWHSpbmQlCTJ2C979h6jwfo9uuKcvPVQWoX5tS/7DC8cOEkW Js92W4YYcZjYDtjW63sQZwmxI4hDZ/KkYIUHqR0LfgEkzwVNj2Lme1speLXjBSL99ly/ Ypcg== 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=dlkTRiPlJteixPbAsLxpIIe6vqw6XBxuk3//t0LHTFA=; b=vNgKEHAgRJ1ztBdYdmEdHT/SJ5V8KYvG/YctZtjTRUEK0rUPJ6JXUCSnHwP5aYYO8L 9myOPMlMOcsp+8AlDjTVznRIn/mp1JYq34UVEjW3+D3Po5g1egOVezkLZK0q4TRSSNdy +I2r69TYwHc/hr9ALIz/mqcDb28QWmS2OHOMtIifdtdD+BsFtcSZZ17t4N06tWXOhsDq iP7lVWSrm/z9RMNyIcr/u3J+0ea9pfA4xOjlxiZ3EHrDH8+qeGSQzSes+2BtDSUPXfXF 3SlgmDulBIFr9BvSu/dp/fA2oGi7YxQnc3Fb6okk9vGKSJ+l2TQAOCzAL7Ds9chp97mD 4Hdg== X-Gm-Message-State: AOAM532KsewFjuqxYqVF19geFA7PXuWCSMg9GB11p+wuZ/78nEyClk0x sRWNIl2KduD2g8S/tfSoPfJKZaLfuTaWvw== X-Google-Smtp-Source: ABdhPJwIdlxC8XE0G0MSsaoqyvPj3/zjVWvso8dYN4buy0r+TXUAVV/pYHvdpGNdUMT2HP9VE+dn/g== X-Received: by 2002:a63:2b03:: with SMTP id r3mr12506735pgr.201.1643046505171; Mon, 24 Jan 2022 09:48:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:48:24 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Matan Azrad , Viacheslav Ovsiienko Subject: [PATCH v2 58/83] net/mlx5: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:46:54 -0800 Message-Id: <20220124174719.14417-59-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/net/mlx5/mlx5_flow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index b7cf4143d5a1..c718dbdb3dc7 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -6990,8 +6990,7 @@ flow_alloc_thread_workspace(void) data->rssq_num = MLX5_RSSQ_DEFAULT_NUM; return data; err: - if (data->rss_desc.queue) - free(data->rss_desc.queue); + free(data->rss_desc.queue); free(data); return NULL; } -- 2.30.2