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 837AAA052B; Fri, 31 Jul 2020 04:35:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 55C341BFFD; Fri, 31 Jul 2020 04:35:00 +0200 (CEST) Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) by dpdk.org (Postfix) with ESMTP id 415EE1C012 for ; Fri, 31 Jul 2020 04:34:58 +0200 (CEST) Received: by mail-qk1-f196.google.com with SMTP id 11so27628253qkn.2 for ; Thu, 30 Jul 2020 19:34:58 -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; bh=3LfFLb9oRrrdxb5wTyfp6iDhn6J+0U5LxGWc0b8gFVA=; b=j4hYfvPX2z3a5/jJK62zmO6LEetiwIWzVVSlIAS1L5s2KYwd+Xx0ff/I0/66QC5k5Y vWt9ipVsPnAs++N/dYl8WMiHPegq+h5IXisvXv9lWxaEgSW0PrgXyV0N73J7XHLtRH+2 q/W/dOXW4S5FprGJwUzr9DCGErwgN7sTt2lsnjlhc+uL6bO9HM4hegZGWAcsrx5Cm+xW 2/CWn4KU95y/w9pSDJRlllFlksKjyopKAfBVgZi7RjAt8DzYhB4kGzkSyNiD2oP5RP7w 1wPliH3QvKBy+6BS6fhc1kf1dDDsqLojSQoVwj+Y3pKtSB/ySuRp+gV32tlCcnpbBtcH X8WA== 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; bh=3LfFLb9oRrrdxb5wTyfp6iDhn6J+0U5LxGWc0b8gFVA=; b=DeTZark6L2owt/NnDXIFz0BqzDQeRlT/kOQ5WvVtC8IVd8+O4oCGK00nxPsbkORIIo tB//8tCIZudCQe0R8+KMJhNKoLosG6hFc9HkGyV0rTCGhZO2bqM8mqB7IFkXyy2JdJMx +bfpcBr0PGbdyzSzTlIeJ2nbVlt5TzhfjIl1jPYf6VRANVvE8KEthD62SrFS6iMqq9d6 Q1s5HFLXM+ipCEAag7TUNARpd6VjAwVnwhYN+qZ1juTHMAOe7miT/0+OIeTDidSqrNak K/A0SAMGAFhHLjE9O5jysotGJ0cK8rtAfuy9+S5LTMCF2gSNg1Aa5f6w3YcslY8XuMHw l/4w== X-Gm-Message-State: AOAM5322gx0i0VJwZblTpj+hRhv11stHZ2harOVcKujp/Ga8Xg+ZuNqK fNugRnThhpCRau/s7FpNlfN7RAFNyVk= X-Google-Smtp-Source: ABdhPJxsA6Kk6Xkd2RAwtlxDgtzd67F+esKonPmof1+8aA1LrzOB8P1tokxIkIG57i1C/bPwpR+9qQ== X-Received: by 2002:a05:620a:22eb:: with SMTP id p11mr2023338qki.413.1596162897517; Thu, 30 Jul 2020 19:34:57 -0700 (PDT) Received: from linux.home ([2604:2000:1344:41d:104e:9490:d5b7:450d]) by smtp.googlemail.com with ESMTPSA id g184sm4154723qkd.51.2020.07.30.19.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 19:34:57 -0700 (PDT) From: Gaurav Singh To: dev@dpdk.org Cc: Gaurav Singh Date: Thu, 30 Jul 2020 22:34:44 -0400 Message-Id: <20200731023444.27986-1-gaurav1086@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] net/bxnt: remove redundant null check 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_mask 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..33a074387 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) { vni_masked = !!memcmp(vxlan_mask->vni, vni_mask, RTE_DIM(vni_mask)); -- 2.17.1