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 BAC8FA034E; Wed, 9 Feb 2022 20:20:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFA7C42703; Wed, 9 Feb 2022 20:18:22 +0100 (CET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 8C92E426EB for ; Wed, 9 Feb 2022 20:18:21 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id c3so3078105pls.5 for ; Wed, 09 Feb 2022 11:18:21 -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=II31h6E9WVd0mY8j/9miUxhcMx8hU/Lqm3DXoTl3UKo=; b=T+0wYwsSkz/5VpVgW2wblRV+Rc8F+2oW0nSC+ED69++nIwb69YxO3E/vU3/WC04sWT CvS8OO4ptdlNj6APFKq4T3ZHqNqpiWnxS3FVCKqpIHJEnk4DPp+gnnnKhVFAJiYIx4Kd 7r5CBL/ZU19Qc6szKs7CQIK0EXQLm975HWIW2kKfyO8S/7cZZNbWI6e76el4PyLhUngn reDOMcyt3kIj7Kvd1FS2UN+skPq2ly8YVnUoWsGSaN9aVkQt9oX3Hb64a3y2CWz7fhzi 4jsLUxwBlC6mtPs9/27zgw0HAmadzdC38J7fsMSM4Y/tb2U8pr3cGvfnsF4QlTiWcZvZ FYQw== 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=II31h6E9WVd0mY8j/9miUxhcMx8hU/Lqm3DXoTl3UKo=; b=1PevJe105XOrfK97pElsgRSQaf7u873sZYxkSlqEFoRKNzaw9TF9EDALlMedBvmwFl cnJElHvM3541xktvtLDgUCVocRw6ZPHeVvVcfG3FCJB961lKMMbuHM/aYhrj6ATkBOjx 09+YX+/NzcB3ZEUUIOB8BJkJu+Qc/k448Ittb2akiheGO4Uo8FjG6A7emsUjXseK08Ro lNx0LAYKrjHVx2Y+iqmx2lP0WmmEE4I6HUQJhzYsH8stZiPGfar/kp+jFVLcnBoBsv/z V0yA90AsUCOwSQN84Eke2yFXj8oGxneKL6fvWs8eNvIUG5afYsjPhGQy0Fv83dojrO60 PBZQ== X-Gm-Message-State: AOAM532h0oOrPY+fLuXk6y1tzh8ut1GcsWSYwXoHCbcD7m2yw73OrbvB 1iRCiv/2yfHZ4flxRY+fjloXoq7vFnHup1NnRuc= X-Google-Smtp-Source: ABdhPJwqe4PbxnP71bhSpd4TBEOIKmqXN7keLtR5F0Ss3Hg+mDVY6QzHL4cm0brK3Jgg8R6cO7V/fQ== X-Received: by 2002:a17:90a:be03:: with SMTP id a3mr5067732pjs.46.1644434300482; Wed, 09 Feb 2022 11:18:20 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id u16sm14378401pgh.54.2022.02.09.11.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 11:18:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Liron Himi Subject: [PATCH v3 24/36] net/mvpp2: remove unnecessary NULL checks Date: Wed, 9 Feb 2022 11:17:36 -0800 Message-Id: <20220209191748.377729-25-stephen@networkplumber.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220209191748.377729-1-stephen@networkplumber.org> References: <20220124000518.319850-1-stephen@networkplumber.org> <20220209191748.377729-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.34.1