Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5998360ybc; Wed, 27 Nov 2019 13:08:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwONuc6iWXCO/LvLuild8Xga41A2aDTPYMSAluZ8c5nY2HCbfgkBIp8SlUdNhTJp5T2pCSr X-Received: by 2002:a05:6402:1d8f:: with SMTP id dk15mr5155596edb.29.1574888934709; Wed, 27 Nov 2019 13:08:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888934; cv=none; d=google.com; s=arc-20160816; b=BUt4XjkP2d46N8u3GX3ePRphQXyZnigEupN1y2G0q2tGHIH5yL0vxcUbMnoU9i8Dlb lzk+bYON5ezg0bGZWE6O5rDtvZ29q/a4FixqaLD1twhBIz0JaHkuXQb/c4iR4wRmPTGW yQTMkC5SqrZuEouFvG67aaPLVX6lFlQl8+KWaZ2Kpu0nneaUGsUBvl90lD8MTJI+nn/m R/lEaIkDu2PWKK9CxD1fV3rTiVrRKvEn8tmskr7x1ODIVb+VQ0xeFcoZFlca6IeY1fyY mLU3n1aOohPcaDPFo9uQzpVpNUJfhlbygydvvl4fUgZaqNf6vMEAFVhbCT0UCDWQ5/F5 mH0Q== 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=9WXsgqoGx2H3itWYmV2aeVtmua+9rvAJ0GNu8CJh67w=; b=dICG5XtAJ3HiBIFfYkOyKp5sJUPds9fhN/HrOjU8lgxbO6FrOXM/C/E90MbdgCAOma Dw0wJSl9GqtE/CCgFEBUi9HoDf/wIgrMi/s73xdzfIWwbCE88whylEYj2E1AscDeJWeO r8kSYggRSnBQBErajx4f0LMaKFAsalOc0Q/RvaD/uA8t4iI9WpRhyHkwnoScvTNgZePx yl5fsiMsYV1U+cCrn/wKddwu0giXEexDfAidg/25OXnM47c0dveRRvZRlcoHHVG5vP93 bYtR4TOODHEsgOhsWjqLRM0liGzLmxcSrQ4IaLjc3XfNN62bdaHCoNed4qW9YCMjGJHM RcrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=htiQf4hm; 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 n9si665893ejc.119.2019.11.27.13.08.25; Wed, 27 Nov 2019 13:08:54 -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=htiQf4hm; 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 S1732518AbfK0VG4 (ORCPT + 99 others); Wed, 27 Nov 2019 16:06:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:32926 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732497AbfK0VGy (ORCPT ); Wed, 27 Nov 2019 16:06:54 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 2010F215F2; Wed, 27 Nov 2019 21:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888814; bh=TsHlTSdvhxWTQ1hfq+x90Y74xridxkUGzUUUPZWjXMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=htiQf4hmQzWUHFhJOXSJ7Gp/BLY+BVWlILP7cdboBi4Wf56Qu2H3FEZ7ilbbZSCdY tPxssYDiPeAhKX83P+rAkR0OVqKNJD8vTyb6u0g1zRLmm5okpRlxQWkw8E9vJLtMsW rEBdGa1Dbvs9HBUxzbTGUoodMUS4AfMeO+HGxPTo= 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.19 238/306] net: bcmgenet: return correct value ret from bcmgenet_power_down Date: Wed, 27 Nov 2019 21:31:28 +0100 Message-Id: <20191127203132.379611382@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 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 From: YueHaibing [ Upstream commit 0db55093b56618088b9a1d445eb6e43b311bea33 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/broadcom/genet/bcmgenet.c: In function 'bcmgenet_power_down': drivers/net/ethernet/broadcom/genet/bcmgenet.c:1136:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] bcmgenet_power_down should return 'ret' instead of 0. Fixes: ca8cf341903f ("net: bcmgenet: propagate errors from bcmgenet_power_down") Signed-off-by: YueHaibing Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index bb60104b4f805..338d223804343 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c @@ -1169,7 +1169,7 @@ static int bcmgenet_power_down(struct bcmgenet_priv *priv, break; } - return 0; + return ret; } static void bcmgenet_power_up(struct bcmgenet_priv *priv, -- 2.20.1