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 5EAB6A034E; Wed, 9 Feb 2022 20:21:14 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8DF9F4271D; Wed, 9 Feb 2022 20:18:29 +0100 (CET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id 97E3D42718 for ; Wed, 9 Feb 2022 20:18:27 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id y5so5979928pfe.4 for ; Wed, 09 Feb 2022 11:18:27 -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=nIwW97BNQw0eKbjSardTsVrQiVmx0Z2apg06a2WX308=; b=fEeJSXpTZpEOufGPYZ8GYll/3x6NX89iGuq0ygE+pGJHW1HT7Jx+4Otebs7ASI7qU+ gvbw/AqWShJLgjs5fy/4BC3kjVBu20TNjL2CaGSLGRYLlNX1zcIN3VK9A7h5KiE50jeC 4EoY3EATlg2UC2O4WzxVrTAb3t5DnP9BcvnGQpdbqg/g9HOakqZxURQ1n2P+5y/k7zhR 1FgLbRo/0YX1x5fCPLx24hdAp17G7vs5Tm6M6ALF0WG4rD8v6/YuB8/yWZCRIrhF9zKE ck+lfiqeYUSTjpYEE58Y295i1cET/0wWeELFdARyrp440F2Vla/zsh8d5dizYpJKQjxa joug== 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=nIwW97BNQw0eKbjSardTsVrQiVmx0Z2apg06a2WX308=; b=ZMKr24brvWbWUhI8aa/bFOBiZ3OrMDvYgnP3WGtQRJf32Jy1t5kgOnY8klTh8AMPmq WFtuHnqIvurFoUOiE7HOxQm9ZSIpdu30AL5hTokUVR7Oby9m0nDTCvkKcEThD1eN0g6X blINBpXTRZxlFP6SeNWYKkyUEe5PObr67TljJj0gqIYNftt8smKsgDOcespSMi8U+bvV hueFyxcZbgrkuUkz3voo6ICyAZcUi0CMS/j9cj05NiH2sDHIQS15GQk+PSDT8nEC/iVp addEDz4LiqBDFwu54iCyJy3Wa+8+Rq6gZQ6baa6YmFYQUnoFGsTEjEZAOHrfUxLOcekJ Rnmw== X-Gm-Message-State: AOAM533fkti3S1gEuILVNkUpDHjSwP7Bczr5/aJIW4++AdG1CsdipbLS 20u+tctvc71T9Fwn33KHR1F3Onys++07DflznnA= X-Google-Smtp-Source: ABdhPJwKctet2ZBTZb8YWVR0A3vnC0Dq0NxEsnbQeQdCC5QUoVyMVYC0pUL6AmiS7qkUVhVDEfKThA== X-Received: by 2002:a63:e643:: with SMTP id p3mr2921798pgj.110.1644434306497; Wed, 09 Feb 2022 11:18:26 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 11:18:25 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Matan Azrad Subject: [PATCH v3 29/36] net/vdev_netvsc: remove unnecessary NULL checks Date: Wed, 9 Feb 2022 11:17:41 -0800 Message-Id: <20220209191748.377729-30-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 --- drivers/net/vdev_netvsc/vdev_netvsc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/vdev_netvsc/vdev_netvsc.c b/drivers/net/vdev_netvsc/vdev_netvsc.c index 55f2a342c5ae..25871951685c 100644 --- a/drivers/net/vdev_netvsc/vdev_netvsc.c +++ b/drivers/net/vdev_netvsc/vdev_netvsc.c @@ -717,8 +717,7 @@ vdev_netvsc_vdev_probe(struct rte_vdev_device *dev) error: ++vdev_netvsc_ctx_inst; ignore: - if (kvargs) - rte_kvargs_free(kvargs); + rte_kvargs_free(kvargs); /* Reset alarm if there are device context created */ if (vdev_netvsc_ctx_count) { ret = rte_eal_alarm_set(VDEV_NETVSC_PROBE_MS * 1000, -- 2.34.1