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 E8B94A04A6; Mon, 24 Jan 2022 01:11:15 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FE234291D; Mon, 24 Jan 2022 01:06:36 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 80FB542901 for ; Mon, 24 Jan 2022 01:06:31 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id n8so13940089plc.3 for ; Sun, 23 Jan 2022 16:06:31 -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=cfbneRSC6g4rJB19F4JRScLg3ih/uUOYHo84LduedtPUt6aollVdPcE5Qt6b9duC4X dw78WK0D3PkYMowmmg24vQPrNn2ry+n7LPZ63hc81h17LDmfb16sWWAm8onFDHyRydmJ u250aTPXe80T2h21GvVB13LPB+EQE3RMzaGBNom8zEXGlJ/D0qquGKQuZlOyqq77DgSE Eg+M4o5WOFC8UDdi55Xaf1MHNvffkSJx7/OsLhFWb5LZPmXJz5cpjI4Mc7HyFoqzCG2o xgdzEtDlxJ9c+b43S6xZnlJuvT4ziZ9LT2RrqUUzTTJJv1XKnfug26kUVsMLcoETjErv gogQ== 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=OC5eaZ1U9kflnU95P6Hbyo7MYG7hxjz8SANH/2UTZCrSGiaaBaxf92BxCelr9JxCFH c9WUEAZ9ZSQ5kZ1q4WItxBQVP+tq9QJyKydDMGX+flDjHVJpNClDevAXRG1KYrHhLbIf YIJDGepqau7HcpU8RTjaqnAA/D0mcVjRpKvh5B/IyqwdXCOTkZn12IJEM8PSADL3He/d CSMTORsCqydyGk0sfOVVOdJc3LRkszoPojhBxAunoVjMEKTcmMk94fDoj3T/hUuzSVIq fMgiHsBbFwqBt1WyjTY7c+ThcKRVV618YnklvWTk/iq5IAN8+wNQdu8XpT1jDdpRxiiD ulug== X-Gm-Message-State: AOAM530bmdCzaojEnPGf8NPJWdOp81RlX+iW7wu6DDNpXxVQLWdFyQtt lvnVzYWLww5xiBHGZ/oHU2TD2wdzrk5iuw== X-Google-Smtp-Source: ABdhPJzYoGo0PN/a037Bo924hyza6xDVsJN9y/4MKlBTCJup7QGzbhIXCHV/Y2A8R2I70ZeE38DrCQ== X-Received: by 2002:a17:90b:3a83:: with SMTP id om3mr1049499pjb.101.1642982790525; Sun, 23 Jan 2022 16:06:30 -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.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:30 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Matan Azrad Subject: [PATCH 66/82] net/vdev_netvsc: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:05:02 -0800 Message-Id: <20220124000518.319850-67-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/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