Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2650864imj; Mon, 11 Feb 2019 06:29:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IaLICqvuj6LQdrvfIq3Tre6i+fNj71mQdu5/X3OlrLaOx0zguduyf+gw/eOJiDpBsYDWjkO X-Received: by 2002:aa7:8a17:: with SMTP id m23mr25125071pfa.258.1549895348119; Mon, 11 Feb 2019 06:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895348; cv=none; d=google.com; s=arc-20160816; b=F9ZGgl9cdoiq50nYeEf9bc4Kkx/LXwe97+mVBo3ZLbmdeWUzk84rtw/Q1Cs3WwvmGD 65GynFnuHq00i4PlVExlzeddXwmvpHg6oiSy5GYR1FUBl+ORWsHVPNhrnpYhz8xlDc44 70Yu9ilUV8CTBgXMC2/G28Nu7TV+KxiqFBQc7szjORR4GXjK+BgUNbmJB82CX7aamNNq NBeTqSs++/4+o+Q7PsdrL/CooE3Gl2hCWzLW0EpVjW63CHQdYGDvrURbL7pE1vDgzMQy bGd7EunoPoNtzb7CTMysLCn3qnMfj9CoD4pjfMmVhzdkWBALyo4kMRKtJZXKC3KJRo8c 0YaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=x8o9EO2gTQnJRIoYfstfRj0vLtVJPKfQUyRUgT2Lpj4=; b=b7dRWKbuOeo7o2mj47EQRm4fILTM+a1q5pUd02GhPeMxLVF+OCMq6EB2Ay+ew/OYtI YXIV/FOxLUsS2+uoqAkJOgun+5PkTslXsu2hlcSJVOOSqnhrQMAr/ifY7wB+XXrpP64t 0I4PPuLFVNloiF9rahD2SoCcfQJ3AkR6NDDlDAWmeb+QfTBXLYbAmwNcNSO6e2vycz5L KfIC6OZyfBRalA0/fauI+6RMp2lfOPfYfN0jHmO6ZEt4I/G1k0iCEe02E5xuFGgsaY89 EHMxj8b80JS2T12EataJz3encJN29Q/EBp3f9+fy9iI+HR1HsBIw13u+/xE61rWGeswu fs8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gurRGSPs; 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 a23si10007239pls.384.2019.02.11.06.28.51; Mon, 11 Feb 2019 06:29:08 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=gurRGSPs; 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 S1729265AbfBKOYo (ORCPT + 99 others); Mon, 11 Feb 2019 09:24:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:57972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729242AbfBKOYm (ORCPT ); Mon, 11 Feb 2019 09:24:42 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 79B4920844; Mon, 11 Feb 2019 14:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895082; bh=WhRkoC3lvAS22VggjVNab/kV9lepe93AJThLGCg8yfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gurRGSPsmv1XLHk+FaIkHU8kmdAf/WEbzM7drk9WEsHlnLzqhewfFPiXxSuRcYGYO HozrPF2Kd4TfvC9ks+Ax6IPVczmLVacYeJskSwm3GSAJQksqYZvvPEXt8eAhzrxl/H Yz18aAIU5aaj2eXe8NDymyYt287hbUPnNbBphaJs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , "David S. Miller" , Sasha Levin Subject: [PATCH 4.20 086/352] net: aquantia: return err if set MPI_DEINIT state fails Date: Mon, 11 Feb 2019 15:15:13 +0100 Message-Id: <20190211141851.432715577@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 4e3c7c00bba0636b97eb23d582c20b0f5d95ce20 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c:260:7: warning: variable 'err' set but not used [-Wunused-but-set-variable] 'err' should be returned while set MPI_DEINIT state fails in hw_atl_utils_soft_reset. Fixes: cce96d1883da ("net: aquantia: Regression on reset with 1.x firmware") Signed-off-by: YueHaibing Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c index 7def1cb8ab9d..22cbf8dc6fa9 100644 --- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c +++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c @@ -263,6 +263,8 @@ int hw_atl_utils_soft_reset(struct aq_hw_s *self) AQ_HW_WAIT_FOR((aq_hw_read_reg(self, HW_ATL_MPI_STATE_ADR) & HW_ATL_MPI_STATE_MSK) == MPI_DEINIT, 10, 1000U); + if (err) + return err; } if (self->rbl_enabled) -- 2.19.1