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 DC800A04AD; Mon, 24 Jan 2022 18:49:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 82F044284D; Mon, 24 Jan 2022 18:47:45 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 578B042842 for ; Mon, 24 Jan 2022 18:47:42 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id z5so2413620plg.8 for ; Mon, 24 Jan 2022 09:47:42 -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=7dLcdElfzX+mIIMFYvrzIDGxa7M6PkJIWm7Sq0z15pQ=; b=cwS7FjBEah6IbysYWYejUGktKgQHyf/5CUqVuH9DRZYFihVX5cKGix/9HEeiDogaYC CZm/pPCV7GViPwAoFiLCVmgv9QSktx94M76vS6DnCSDucAHZmnUv85ZJ4fJ38yUH4lcc boW8gyRsXKnji26oNDhvaGNMskQS1TBqEvRqeUGraXE1jkMoFCP6d9jH1C/cPXmipKnE F9Iylz71+yRm0mBzByGvhP5F1nVISM4LAvidRNZwgGfIGCVHnmlykPgM/i/DGyJey70H e4bb6+8FdumRdqh5jBEdFleR2m4oYcWh4eFxdUYXjbSDVRpmkKwSgtTROwAJ4KnMs4lq 2EQg== 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=7dLcdElfzX+mIIMFYvrzIDGxa7M6PkJIWm7Sq0z15pQ=; b=abJL+KOu1ENNMcd5g6Zzy0cUezy/qdyJAqbUm5/XrlzrCbVBVQFt4I3oKmPVYt/+bc f6fOLL9VGqz8Q60HPJ7c4XqC5ZwYfBxqRFPO6E+BSzz37Ahoi2WVRO1YAbOpaG1OHqG7 ggKdy+grx1XarQoYnnz1uesWcrsGEXlMaPkwecaaS/VjAmxy1ug6oQL9LVui/49wXjTQ YzPxx3FRTJoiREGblRGpML2OcH3u9+Jw1FhDmQ3c+a3C9vroi54UvknDI/Mw6Y7L2tnD +i3L+0XKjGjHi1tixhcHEPxdv/py391KguapXSZs1SiRbRbPUAOliF9OEMNNBMqYIPor 2Dyw== X-Gm-Message-State: AOAM533ruNiSLcOXGBw7xFOBI1jdJBiftb7+jwxMdUG366zDXplSPtr5 WGhoVm7ez+MSBqqAb4Hind835UH4m7EQfQ== X-Google-Smtp-Source: ABdhPJxA7mB2kansZCMbcqgc1yvo6iu0gILHLIOAFx56bKJAGYrCQahQ6X/TQhbbK32mbh7Y2qq22Q== X-Received: by 2002:a17:903:2287:b0:149:fa57:ea87 with SMTP id b7-20020a170903228700b00149fa57ea87mr15388787plh.94.1643046461373; Mon, 24 Jan 2022 09:47:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:47:40 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nicolas Chautru Subject: [PATCH v2 18/83] baseband/null remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:46:14 -0800 Message-Id: <20220124174719.14417-19-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 --- drivers/baseband/null/bbdev_null.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/baseband/null/bbdev_null.c b/drivers/baseband/null/bbdev_null.c index 08cff582b99d..248e12987f03 100644 --- a/drivers/baseband/null/bbdev_null.c +++ b/drivers/baseband/null/bbdev_null.c @@ -251,8 +251,7 @@ parse_bbdev_null_params(struct bbdev_null_params *params, } exit: - if (kvlist) - rte_kvargs_free(kvlist); + rte_kvargs_free(kvlist); return ret; } -- 2.30.2