Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp799646ybc; Sat, 16 Nov 2019 08:55:34 -0800 (PST) X-Google-Smtp-Source: APXvYqz48UgRAaEG879iWso3dQbjOGXrajGUDo2R2XNhkzAm8WBYMn4GVa/h+yabqI5yyMfVTUml X-Received: by 2002:a17:906:9417:: with SMTP id q23mr11328243ejx.37.1573923333934; Sat, 16 Nov 2019 08:55:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573923333; cv=none; d=google.com; s=arc-20160816; b=sF2Cm7J6n757AGF49toKJBFBC2Ttu1xGuL+84NT9kettph/zUpsltShNKRoWBF4zmC BHbUbec0yhVh+wFkkoFJjx9oLudiYIouO1TBOxXlankt+Gednvw3OVGwZJoaMQhxbpqk eaFbBgFFAqx3YzVYvy82f+e4daI1jmQn9E7i0djf5XnSNHG0NzLzVX3n4TjELJLUz0dP mEfJh2rQ9l7q5t6cDqvuHtLYazdBYbJuX7yCdBGTny9Gua1e4VdHoviDKxJwy6o7vlZZ tjZPdetMp16va5PtaanE9WzxoedkcFyqHaPoQ/a832P/l7zV/1+bDtt7ocEDbMpurwv5 v0yw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9WXsgqoGx2H3itWYmV2aeVtmua+9rvAJ0GNu8CJh67w=; b=M9D5SIO6k4qjtKfjQEfFAQPUco2iYKj8V82/OjS9T96xUGCs+vJhww7yhKjOxopsRT tR/yyC7iwSe1yxJD6fvi2y8etkdlW5qBLc2SGf7BFh/adwsSZsM/pUi3TC6vrw/PngLE p5Ue7dgbd2NpDtQfZa+CM+wCTKEJohidmNYvQU19VAyqVkpPFED6rqaJYxeU/5Ykrxuo B35n0WZz6nU16uGyoBGvb/fTyGkKihfnAGJFkgNKsORsPXQi3ssURLeg3aMEqBezPbnH D1uD4SvuBdcj3MAhf52E69pPi+XvlBVS3z7mTNwYy55voRZp2ug5hOdagbj+sDUH86+h DOhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fi5baKaC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si7552133edc.217.2019.11.16.08.55.09; Sat, 16 Nov 2019 08:55:33 -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=Fi5baKaC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731970AbfKPQQw (ORCPT + 99 others); Sat, 16 Nov 2019 11:16:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:53556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728885AbfKPPqz (ORCPT ); Sat, 16 Nov 2019 10:46:55 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC9C2208CE; Sat, 16 Nov 2019 15:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919215; bh=TsHlTSdvhxWTQ1hfq+x90Y74xridxkUGzUUUPZWjXMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fi5baKaCLLb4vjT81al/eJXH88eHJ0QqOfCC2IrGl1bvoUimanJiXNX1+TXM00/In d0BfoUFCzSU59hAvq6XnGfB8KDRsFH3Q5SC0rK2ZuXM80m65ktU2Apcqg9p/VYo0Qg mM4lwKvjN2txsGLpcjtV8WPafYs55x3HE6XkaX/0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: YueHaibing , "David S . Miller" , Sasha Levin , bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 221/237] net: bcmgenet: return correct value 'ret' from bcmgenet_power_down Date: Sat, 16 Nov 2019 10:40:56 -0500 Message-Id: <20191116154113.7417-221-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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