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 A0069A04AD; Mon, 24 Jan 2022 18:49:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 86B7442847; Mon, 24 Jan 2022 18:47:44 +0100 (CET) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id 4B6FC4283D for ; Mon, 24 Jan 2022 18:47:41 +0100 (CET) Received: by mail-pj1-f51.google.com with SMTP id s2-20020a17090ad48200b001b501977b23so16476762pju.2 for ; Mon, 24 Jan 2022 09:47:41 -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=P0lQGsisEIBZJwoC6iNSlGBNA3J4/Jrt6WJk9imWfdc=; b=QxQptXaKqSO0fJNnp3DQr/mOCkB5cqImnd9D53fZgzaI6noRzJ5/gPGacaj9KFOdzc 0HOwvxtT5fGV403a9WqmCr4Z2o5LGdAvMtaqCozi5TMVkINtJMVmBpglV9kuy1G/7Adk h3C9FcBMHw+Thz03RJxAcX0Oy9DSR3AyVi0p8fZs1QuST1qhUg28rBeCPkR2Sl1tr44S Pg2/mNIWkRBkK9mityfGPk6QxNWUhFAb4d+r3IwnwhSZd8+BF2LD0O9OThowwxB9Qnkz G8KOEtRLTbWMyLIlTWkoHHUKsBs3WhDF5ZRpdsxCOnzupiFzoiLsUZ95aP4t366hSc6h GbyA== 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=P0lQGsisEIBZJwoC6iNSlGBNA3J4/Jrt6WJk9imWfdc=; b=yNl259zB7ppTAVjcmVad6dL58DzCCmvhFz3uzC3HIpMJ2sbuPuu12jQ0zHxLXxU338 LW4TaaBKPuM0WUWDuev6D8Ivs5EKx4+v23Gnsam2yZm+WuDSwdvys7ZBSDqLT7Umpl2O T9aQzoEvUvNldJybA7Wll1YD0lL/czGMzkpxIPu0xQfYVGmq/QiS7+uv2/HJyFrw4F0G XvdX24F0VvZDLoUga4+cUrzaxUTz0EbBHthcz4Rnw4WxnnIWXoYSYtonITVfrNQlC878 Ya1xgOM/GyOw8otg84UJaNFwDZTTw/DHYnF2HNKgNivPKQEMg7QcJvRPfRlTh+SbfFml gPuQ== X-Gm-Message-State: AOAM532lz6YeZxxxm27hykOxzKzT+7DmcigicmhEjR4WtjLvQ4pMbbvJ gvZBe1ZAl8w/olxaIFzl9zvicJZ20d9qfg== X-Google-Smtp-Source: ABdhPJzn8nnhZz3/VPJPChlJNod4Oou47Fktxb3KLnV9Cs0us/GkNf8S18+ULG+8jIIVHVA2flx6ww== X-Received: by 2002:a17:90a:5994:: with SMTP id l20mr2933908pji.121.1643046460319; Mon, 24 Jan 2022 09:47:40 -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.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:47:39 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Nipun Gupta , Nicolas Chautru Subject: [PATCH v2 17/83] baseband/la12xx remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:46:13 -0800 Message-Id: <20220124174719.14417-18-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 Acked-by: Hemant Agrawal --- drivers/baseband/la12xx/bbdev_la12xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/baseband/la12xx/bbdev_la12xx.c b/drivers/baseband/la12xx/bbdev_la12xx.c index 4b05b5d3f2a6..4d1bd16751fe 100644 --- a/drivers/baseband/la12xx/bbdev_la12xx.c +++ b/drivers/baseband/la12xx/bbdev_la12xx.c @@ -975,8 +975,7 @@ parse_bbdev_la12xx_params(struct bbdev_la12xx_params *params, } exit: - if (kvlist) - rte_kvargs_free(kvlist); + rte_kvargs_free(kvlist); return ret; } -- 2.30.2