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 A3D56A04AD; Mon, 24 Jan 2022 18:52:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C76A442952; Mon, 24 Jan 2022 18:48:29 +0100 (CET) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mails.dpdk.org (Postfix) with ESMTP id 2B54442846 for ; Mon, 24 Jan 2022 18:48:27 +0100 (CET) Received: by mail-pg1-f175.google.com with SMTP id p125so16057613pga.2 for ; Mon, 24 Jan 2022 09:48:27 -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=+lBew+vQ8GiprD0cERtvMyixcRwPweW7PYK/ERegOkM=; b=s4ZrFG3PDQp13/2MF6pyLNOd/723HwcHpSLI2bbBUrYiBGgHksCd5fb1Lg7T2IdJij Vd/hTmq6WqwqfBlqx0m5+tZapdmU1ZLMC8d7aqgcm/S5ty6B/bsiR9UKFEsjPoawCO/P /lLMVBRZ6B+bv8qpSye1M1BtUdn69QFkc7hFz4Ddg+BjMd4nd0Z43T5DScBBKCG2arct KU4VE1skxTFVcucHUZhqkLsBwRCbywlQDOzK9h+Q+lub6J1IFlytDWcU/cxmEsN6ZVU1 Z0y8lQGBi6Ge1PYbUWf7hV6mBlY9BtRBJXTyQ8Blp1Zr+VPzmszfbNTP36H7yzBncJwI Jalg== 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=+lBew+vQ8GiprD0cERtvMyixcRwPweW7PYK/ERegOkM=; b=EVwWcaSWwlSD+pfNHV6xPDciEjLumciWlGsPUXJanTvKcJx0f2p0Jbd86btYX87dtd WxNItdsdGOFbOij8qE4AwgJcvny/BATrz0RFe6mmPy8dZpSmYWkdfR6uYIKAoWzTGzkx GlxcDVwrSFDtteL2LVI65O1x1yUrqKRivZ/ZRdojTQgXfw6chndWtZe3jGDQt7VDydOw 0Y9S2EeGk1ynzXn/IhN20AhU5mhfzx1iT1MjP+Vg07MNioY481/2BZf2Z2jyZTnRsnKQ WgVyrKf7izG429VQenzQnVp3zDLIxady6whHE1fIIK3YX0Q6zs4ZELDV5fctb7IpIrcl mC+A== X-Gm-Message-State: AOAM53242hejZMQp3bgzXSXkL31krrp8MRv+AZDwERUxp7m5HbLLqwrB zIlBtc15aws6WyhyzPWTu0LGf//Gbf+7Jw== X-Google-Smtp-Source: ABdhPJwxfKhFR7h0NGDBKe1EQPSdHKw3TKM9dHKRmEiQoyNmhLgHa7SqZ1OHdt5WYHaxwm8kQc+Lgw== X-Received: by 2002:a63:6948:: with SMTP id e69mr6951099pgc.16.1643046506204; Mon, 24 Jan 2022 09:48:26 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:48:25 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Liron Himi Subject: [PATCH v2 59/83] net/mvpp2: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:46:55 -0800 Message-Id: <20220124174719.14417-60-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 Reviewed-by: Liron Himi --- drivers/net/mvpp2/mrvl_qos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/mvpp2/mrvl_qos.c b/drivers/net/mvpp2/mrvl_qos.c index 99f0ee56d1a7..f43217bc589c 100644 --- a/drivers/net/mvpp2/mrvl_qos.c +++ b/drivers/net/mvpp2/mrvl_qos.c @@ -945,8 +945,7 @@ setup_tc(struct pp2_ppio_tc_params *param, uint8_t inqs, param->num_in_qs = inqs; /* Release old config if necessary. */ - if (param->inqs_params) - rte_free(param->inqs_params); + rte_free(param->inqs_params); param->inqs_params = inq_params; -- 2.30.2