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 6DCB5A04A8; Mon, 24 Jan 2022 01:10:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3EC6F428F2; Mon, 24 Jan 2022 01:06:28 +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 32245428DA for ; Mon, 24 Jan 2022 01:06:23 +0100 (CET) Received: by mail-pl1-f175.google.com with SMTP id n8so13939896plc.3 for ; Sun, 23 Jan 2022 16:06:23 -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=X0KYvnhqPS0AwyvpQRsz4f0giuWmYu2qJVVxxofx+Og=; b=usrViEQa8QIPh0nvfrjDKYudlAceGajjlwmzRMQY8QfBgNpGe1JeXWk1iTgcOFhHzt 1232utGFAfOdu1axLIPdGpv/i8rsMCFZM2jRoQRMCtVcqlyB85ALWAsi5PETtLoxPlLe t3B7CgQgTcjVfE2e91CVZ2kKqblP4vFdKxGcpH6RGanbq1/8RLvbAQygWKirhyEJDhiU qnoNjt6LbRciYKI29ChpeBgJWmEM5TDKwp3SFXf3eb/ejYUUnFfOO+Q3rwXO+Pgcv6Ea /CfWrTppH9c2SY0spzYATtWFyLYcjUmHx0FOSEDNsKAKMPpbrF/kDnQ2/gO95+Fnx35K 32NQ== 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=X0KYvnhqPS0AwyvpQRsz4f0giuWmYu2qJVVxxofx+Og=; b=2aasBZpgFPDr10uvzJmitZ5kecyzYxwk3CXVcuOPQKYW7CIFnsp6nm2hWw/USowjOM 7+AbbcdsSJ+lKfbODVcwYCnTy8IZIdmWjk7FhnxTYcduK+oKSFCK2JEt7kqHA0vcO0t7 fVUTxutof4qbPTlr9S6YPFu1sDLjTH7WbMK37F1KIsarVYVGs5IklEKN2IFWf/GaI29H r0cZlPDj9isF7OSFVK+GTE7ZlouyTWavwmlrMYnCzwdTM2NLRwod7UM/7WUFJecRj5Ur A8mEF0Xo8m4kOHQh0bi3B9+NLDOsK/oqIneSBSHQnzVuwg7gTOgwlz1MYZG/HbvW2/f9 tR8w== X-Gm-Message-State: AOAM533kZv+ANeaSl8fr5OMKnSP2Svgrw8kwAdVnH8vY+zg0dsKY8bOi swHhs9EmpQcxcQZbizQO+Z9q2WjpXIDB8Q== X-Google-Smtp-Source: ABdhPJxfLu8GtV7sZSls5y3AdMGxix/IH1CEfnXntyVUu17mhrSlekA0zDIteTkbZjYLN8/YRzNn9Q== X-Received: by 2002:a17:90a:d596:: with SMTP id v22mr10726437pju.87.1642982782182; Sun, 23 Jan 2022 16:06:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:21 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Liron Himi Subject: [PATCH 58/82] net/mvpp2: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:54 -0800 Message-Id: <20220124000518.319850-59-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/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