Received: by 10.213.65.68 with SMTP id h4csp480819imn; Fri, 16 Mar 2018 09:03:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELt/PFBvj//T7DfVzk0uzU2U1d98wnQrsapVc9B8oPt7HwVXOwyKln2uSCetpxS9aj9poOBt X-Received: by 2002:a17:902:b7cb:: with SMTP id v11-v6mr2733945plz.206.1521216200453; Fri, 16 Mar 2018 09:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521216200; cv=none; d=google.com; s=arc-20160816; b=gf2gqr3mFs9/BViyti8w0R8dgKx6vcduF/YithNoYAcYAy8Pij1xGNX+MNGT834Siw E/INOOEouYJxiDJ1DbB97gcYD/ntS4DdFeAe7ky4suI4EWJPjxSEdRacYlTcT8Jio/m2 K/wmmOtEqGiuDGTF4FRZgOKrrcOHb5QjTe1CEdAFh0YRBBrwLm4uw4Y64vTymRjek15a cwB4Una5yl8uWSrqIXbcwk8baToVN/6+ybGjW0mnZ2+QRLQ9BMJ/0nOtywPp+NzjAIrU 8zBz8z58jQHIYwFs+AOwf7ZSThQ5Yc3Se8zzRUWTHhZRgwgQjcJ8YAp5EVBDSNESBLnr ohzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=uYP7Hw7RphgTe5vWvcVu5fzrb8puPvdX1j6Gupv1Ugo=; b=tc9UvrOFnupf0qX8jBbyOfQlX7spCGAq/X09BocE3Nz9DL59RyzxyxFVsUI5mCA+DH joVoiL8jsoZPXIb0Guk6WcEfeUBTKd73ObNaYhjRfKcdqXRdIJ1yw74f0DfS0bN/CQOO QNNAu09aotRieoRwthgEJbsbN9bFH+WMcriSFYhIRe1Ip5THohnOc9SbsryNTiBk6/vs rIYY9a8jE2StS1+ZeoukDlNSdrzn80irN2PUBCQ/MNT1mhhjT3xcHgzvcjCOowk3PJ0X IrPNCK6sc1mlMXTAo2esNqmbdKg/9kRLv2bk4iXZRNmTqUfIoqgwrAuRHgS3ZrsVjoVa lQ4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si5046310pgp.660.2018.03.16.09.02.42; Fri, 16 Mar 2018 09:03:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965244AbeCPPnV (ORCPT + 99 others); Fri, 16 Mar 2018 11:43:21 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44888 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965014AbeCPPnR (ORCPT ); Fri, 16 Mar 2018 11:43:17 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C6C42E1F; Fri, 16 Mar 2018 15:43:16 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Michael Chan , "David S. Miller" , Sasha Levin Subject: [PATCH 4.15 092/128] bnxt_en: Uninitialized variable in bnxt_tc_parse_actions() Date: Fri, 16 Mar 2018 16:23:53 +0100 Message-Id: <20180316152341.132311918@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Carpenter [ Upstream commit 92425c40676d498efccae6fecdb8f8e4dcf7e4a4 ] Smatch warns that: drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:160 bnxt_tc_parse_actions() error: uninitialized symbol 'rc'. "rc" is either uninitialized or set to zero here so we can just remove the check. Fixes: 8c95f773b4a3 ("bnxt_en: add support for Flower based vxlan encap/decap offload") Signed-off-by: Dan Carpenter Acked-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c @@ -148,9 +148,6 @@ static int bnxt_tc_parse_actions(struct } } - if (rc) - return rc; - if (actions->flags & BNXT_TC_ACTION_FLAG_FWD) { if (actions->flags & BNXT_TC_ACTION_FLAG_TUNNEL_ENCAP) { /* dst_fid is PF's fid */ @@ -164,7 +161,7 @@ static int bnxt_tc_parse_actions(struct } } - return rc; + return 0; } #define GET_KEY(flow_cmd, key_type) \