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 A7AB1A04A6; Mon, 24 Jan 2022 01:06:58 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0D9A427D7; Mon, 24 Jan 2022 01:05:42 +0100 (CET) Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by mails.dpdk.org (Postfix) with ESMTP id 74CBD42809 for ; Mon, 24 Jan 2022 01:05:39 +0100 (CET) Received: by mail-pg1-f181.google.com with SMTP id 187so13438490pga.10 for ; Sun, 23 Jan 2022 16:05:39 -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=gR25GlvqrugHFDSHpGwRK+o2yAldZ0whYHwtH3VJk1Q=; b=bvIlh+UR/OiVmztIheGA5jR0bjGSFhjHzs155PiGBY4QywOTMKEh/pW99nFeNWXn3x saFNCzUxc8P+KFRt+ks5R99WqaU8hS+flZbKn3P0ULF5kd62M/FWcWWQE34+BL8g8SzA zIPhO2rbT5sSJIvlIeaZIKf5Fnlgj902Kkd7DgAShQkZ3xc8og9tGnHCk8IzMp3MAw3I bETWV7ZMeUZYIJYJzWr6BkOwJPFFlg6J8yzcjt6vOmyEhqCu/NT0fpzJHYNAc5or9ljJ K1oidzOGDvqSpq2sH3lTRLcR1UD0rs5VOTQuK/7pPI8tkeJJ7DVusZkk1OBpu6wpDqD9 gXYA== 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=gR25GlvqrugHFDSHpGwRK+o2yAldZ0whYHwtH3VJk1Q=; b=t39UTwufHr6FRZdbjWOtHiYF1TiRydv7br73ecxR+aVAVsCk6nzmWJaBK+YcD3E1zy /mzaVNm8e1MJ2XB03BeCMKpKn/K+XlnUGypobsGsrsU3VOLtRtLtIR4jCggcC7PjD/5f Yg8twFJLReL6VEYKTriiogwhaEbtvU59d5YH26g6AyXKQNvjpb1ETUwBOuzFSK1G7YIF G7K2/pZCOht+VT6xAoOwsPC81bDUYixsGl8x2o6Gj+vs+d7FVjNdANM7+OVq008c6z/0 JGdLMhQI18363zq+ZD3tm1z2TBGsq8FNDA4WfsA2uJVZ134tY/0PCFM7CcUm8MLfZfbm 1egQ== X-Gm-Message-State: AOAM532BzQxsCYfirqavp6QwxJT1oFVtc30worCfbUpJp8S8fIe/QmBK xZeHJXJLD6p7MpuLTeXOuk7IjY6VUELI4g== X-Google-Smtp-Source: ABdhPJxaP63b6hSSh0klms1ROKGLlA+Smhz96zf4BvtKLURl13jMhQKybo7BA5AVhLqJFbNXb1x8Rg== X-Received: by 2002:aa7:914a:0:b0:4c6:c181:5251 with SMTP id 10-20020aa7914a000000b004c6c1815251mr12138137pfi.41.1642982738472; Sun, 23 Jan 2022 16:05:38 -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.05.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:05:38 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nipun Gupta , Hemant Agrawal , Nicolas Chautru Subject: [PATCH 16/82] baseband/la12xx remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:12 -0800 Message-Id: <20220124000518.319850-17-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/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