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 A5DCBA04AD; Mon, 24 Jan 2022 18:53:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D24E4297E; Mon, 24 Jan 2022 18:48:38 +0100 (CET) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id DFC1D4290A for ; Mon, 24 Jan 2022 18:48:35 +0100 (CET) Received: by mail-pf1-f175.google.com with SMTP id i65so16675961pfc.9 for ; Mon, 24 Jan 2022 09:48:35 -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=cJ0M+HCDv986gQbgz0ZRF2GNeTtogQcsh34js/wezAs=; b=b+T2If+JYfX/gof9i7S1ClinBmZuYH+COLQs0xEZTkIlpxPJj/elFJbmScSviFZD0V jKVDHXztNf2bw/Q2W2Ma9BFcxOdwbNyjnQiK1e3mgviztrhGAAFbAhqYrYcpYbgQaNFa Sd3Zub4oSpbIkDMeP3f87iLHHUi6v/gpX250CPOW0Iy5yLy8UdOCFHe/Z6UPAJkOqwv+ 50A1PCNRcGKMCfw1LhXt555Po8oS7UAWWsqOOv0YWNk54MqcRn+vhiW3QiE6nOrHrk4P cr1+b39EfnDmg3OdS2qi/t3C+KMayiV8ogPkPF54j05KtuMQDo3sXlb4LzMvEPvCodNK ypsg== 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=cJ0M+HCDv986gQbgz0ZRF2GNeTtogQcsh34js/wezAs=; b=H9tZxrypucK0VZRQoKBYGhJvOMv38lGHtvsyA7PwonnVcpy1auO3yc9HN77ZNOTwho tizlnDbck87wji+TBJQbnUJl5O0o/HoGrrHCRecfQtEKSttqhs8mH01UfGI4kzujbdf5 u23DpxHb46hG9WsnqN7bHjGjBItY/RXazm3uBdiY8kETWUwuD9H42tlWhJJ3lpBjLrGu tZYuIpR4L84OLDHdM4hgHHjHhiP6xzpFvzr6L/DvJaj+bFyXKwxdNUbjbVPGqQ/eEkZ5 qMFzhCtDcgkUfw7Ei3ioXk0/OzFao31UHdrLL0dhNmpiI7b75PYm0qfV9sM2mQRqbrvg bZiQ== X-Gm-Message-State: AOAM530oxq/Eq0Not0M2xQJvNlyxhUzUd4LVszxthY+afNYJCx9hhgTR 3BGo3IpXISybq0cBnWc1nuW9G/unNrpiMw== X-Google-Smtp-Source: ABdhPJywdNIHb6vnmh57PFAfmeF02DAbo4WyYqTmJT5nlZ5haXQeMb5sZ5H9mT87Hk3eQwDaoTh8bQ== X-Received: by 2002:a63:69c4:: with SMTP id e187mr12799551pgc.442.1643046514954; Mon, 24 Jan 2022 09:48:34 -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.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:48:34 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Matan Azrad Subject: [PATCH v2 67/83] net/vdev_netvsc: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:47:03 -0800 Message-Id: <20220124174719.14417-68-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/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.30.2