From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 59B79A052B; Thu, 6 Aug 2020 05:52:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3EE832BF2; Thu, 6 Aug 2020 05:52:21 +0200 (CEST) Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by dpdk.org (Postfix) with ESMTP id DE08F2BF1 for ; Thu, 6 Aug 2020 05:52:19 +0200 (CEST) Received: by mail-qt1-f196.google.com with SMTP id x12so26904956qtp.1 for ; Wed, 05 Aug 2020 20:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1eX0uFwKo6ew30Yh+YZlLDtYwhjCjewu1LMy+go149Y=; b=DK/akjzI/Ng10Ty7U2gppdUZEsXZK8WYePKwEqRkT324J542CbNyzm9CL81Ou3rB5s zqe0eD9FaHoR86YTFj3V8fgZ4giZgvYG4/tsuPCoiUOHeE049+SGcz4BvrRAcz0U0INS 21Fwd/Fq57xzuMshpDvOuxEICIqRKlqYaH2NUUnDg4Ppoz4UYukPbc+3izV89HiNNYBg RDECL7olKyv6FfqX1ZJbyDoHBoMYegTrieJDWUXCfhs4DOT4gxrBEdW34zQhcaN2qp2t KAQJdB3mjsB1eK/LbOlI5XcxlLP+ZN1RqhV4sNjv9FysHIMaID4RX0/tN+rxeGooLni1 JGpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1eX0uFwKo6ew30Yh+YZlLDtYwhjCjewu1LMy+go149Y=; b=eCf4Byijpm6y/dkyuQSFVNbKwCl1dWfRYVZXIBkKqwJUK/NWo9gwxV3HUDxnDkK622 yViQE/0sdwFDY/ZMf6DmDkWmqfy0uRlPMoDRXiK0U0Duo7Ufc1pZ34w4fsvWLyf/iBX3 4264mNpdRDUnMiudunRlkoaXFZsLt7q2kyrderX4fTQP1eigvQpf2lyPvXD0gXCY9iXD iz7sNFZCNForD9XU7l7zoR4jZKsEUdKSZCArvojtMTdnk6qfwlm9ADJllDMaRCY1S3R6 PjYJrv+orftIdWtVkoVzr4+dobWNdSlyuVRI6+Ci2BwYIJiFkJDcSKvqM4KYnzzzjIFb WwVQ== X-Gm-Message-State: AOAM5337gH7mo44Pr3puHUttOdB5ceRiMGGBobcRWEgG3ejN3Sga+wGz FOhA+u7ad1nS0nN44InJ8sGPHq4S0DQ= X-Google-Smtp-Source: ABdhPJw5BjlGDPm+BUowAnTmbe4UR/4flRQjodHstAHco9lj8b021yrsIUQMz82ueZ2+0XILbsn2XQ== X-Received: by 2002:ac8:1c6c:: with SMTP id j41mr6950809qtk.226.1596685939176; Wed, 05 Aug 2020 20:52:19 -0700 (PDT) Received: from linux.home ([2604:2000:1344:41d:2015:dcc2:6079:f44b]) by smtp.googlemail.com with ESMTPSA id n127sm3474189qke.29.2020.08.05.20.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 20:52:18 -0700 (PDT) From: Gaurav Singh To: dev@dpdk.org Cc: Gaurav Singh Date: Wed, 5 Aug 2020 23:52:13 -0400 Message-Id: <20200806035213.22538-1-gaurav1086@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200731023444.27986-1-gaurav1086@gmail.com> References: <20200731023444.27986-1-gaurav1086@gmail.com> Subject: [dpdk-dev] [PATCH] net/bnxt: remove redundant null check in bnxt_validate_and_parse_flow_type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" vxlan_spec cannot be NULL since its already being accessed before. Remove the redundant NULL check. Signed-off-by: Gaurav Singh --- drivers/net/bnxt/bnxt_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_flow.c b/drivers/net/bnxt/bnxt_flow.c index 320b53d94..c1c59bbe5 100644 --- a/drivers/net/bnxt/bnxt_flow.c +++ b/drivers/net/bnxt/bnxt_flow.c @@ -554,7 +554,7 @@ bnxt_validate_and_parse_flow_type(struct bnxt *bp, } /* Check if VNI is masked. */ - if (vxlan_spec && vxlan_mask) { + if (vxlan_mask != NULL) { vni_masked = !!memcmp(vxlan_mask->vni, vni_mask, RTE_DIM(vni_mask)); -- 2.17.1