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 BC6FBA04A6; Mon, 24 Jan 2022 01:10:31 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69924428EE; Mon, 24 Jan 2022 01:06:27 +0100 (CET) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mails.dpdk.org (Postfix) with ESMTP id 2B825428C8 for ; Mon, 24 Jan 2022 01:06:22 +0100 (CET) Received: by mail-pg1-f176.google.com with SMTP id e16so4334840pgn.4 for ; Sun, 23 Jan 2022 16:06:22 -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=tEAiqMOJEhD4X2zF2/Yhqd88SDKJeNMLABaxJu+r6c2RhawZaPHL0Y2AWtCWftnG/m QXuBw7tzjXz/QBO3vjGzvxGDjlqDKXiy85jh5zABS5CuTQmM3sqdG98U0i/6g2vRbPAA 71xWBqjdwF+JKB/sj82G6gwY6Qph68KxmsxUyHxTw7Lm56U6henY+8fzEQD+/nsfZ6Oq XwNv/ZeXpw/fYw7XxCu+aTIYSpsVnj/nXuxoMfsRVYWSx3L+PN9Mxoqf5cZTiWi8jIpV C7aWTfN1116UcklpT1IdIRsngPFI9H2sEwWGHPM6kTzO2iPUAZdpO/se+dE1F2vufM9c oFiQ== 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=cUvUC1Xk5tS5LEEmu6mJx0hvnmMWGlsMGFsdV4Iv0fVaMfkJksgqNufdBJCuh1fR79 wgwTMV69jPvzjRnOP5s3OTRX/Be0kTlkv7XAyKdIQCuaxwfBgnwITMAzGtw/qVvPT8aA T6/f8ZdUHw/uGWGkEbDxY3zk/ekoD41iJubptOsA/xGXngkQT8g4DeHOVIyhQyaSmG/V GKeUeEmskzXOWmdpMDQQ/PeRwk8IbLMQpmoF57IXyGzRJHV+v+KjKEeGUXPSckfUc2i8 va7Fh9NEkIfZAGq7/KLFTEPY95DfeVWCnzpcfOvBXN9++ypvnrHPeuJJKdJJG6D4CAXh wk3Q== X-Gm-Message-State: AOAM532N0jUD7j1ZDWXX6QF71Vg2dip/ekz+wez2X00GDFrXvTeB8+F/ 5iCeBC2xrPZA+3u7YvF9HHYrF66rOCGBvQ== X-Google-Smtp-Source: ABdhPJyxVtINqM9Hl4KF+mh7uGHoGs75olefQoImk++H7kfpRn3coqwziAHk2BeNFwvK6rk1Ehv78Q== X-Received: by 2002:a65:604a:: with SMTP id a10mr6331434pgp.357.1642982781217; Sun, 23 Jan 2022 16:06:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:20 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Matan Azrad , Viacheslav Ovsiienko Subject: [PATCH 57/82] net/mlx5: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:53 -0800 Message-Id: <20220124000518.319850-58-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 --- 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