Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1945788ybv; Fri, 14 Feb 2020 08:40:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzuNAHDCiNtKrwu4UqeM7etGQeGUiuQUhjeDLmrz+tSgWhZRqtAzNj+4YlrR18q2fmZKHL8 X-Received: by 2002:aca:b1d5:: with SMTP id a204mr2441943oif.82.1581698408889; Fri, 14 Feb 2020 08:40:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698408; cv=none; d=google.com; s=arc-20160816; b=R2nX74YwgW+BQiF9YGMQke86skT6CI/KzCaN2pP2eP00teVycm82en1MYM3BdTi6Xq xDjdHYOIOZJPCVkMo1GDCsZaB8nNPbMTZruuy4UradsBib2VAZuuTbvRypiOdAPcGD6R 2/0PegUYQBVEBvjEgN9HT9kqeKXCX6idKqXeqwtptmbRYOxkBVNmZR98goIBi9T5y5Mq rUJ0LBFb4cCDzzYPln/MG8oKadWVibPuNonGQEtsu6PI4Mh3cSRFGSvSWKgMJFK/UBz6 4NkGss9JmsekT+fXXhmgOdLTlD8v5ThymDpuNFDGeEVkISBfVrhCrk3OtohCrObk+gdV euKg== 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=r99Tjh5BKBrC9sm9xzXPW6hDxNXn55t99jalP6P2G0c=; b=WnKWP0tRhFL7PdjsmPORVdbrMMJy7BBxWAO2k9WNoYSidLI9o4rxeDqluNEyM9N22e filRvZYDq70T4IBjRlRsNDhcHYwO7B8X4f0M9zcZUmZTqLyUwQDZd/1bytM2uWb6Ky5f drtdNd2u6SHIHfVPEdGOrFdGlNy0TUWhmgQ67S7eGv5lx7pG5VAaukj0/YKn6aefJcDs GAuRX/sOPH9hd83pqCBYPvMDwTW9S+A2dkTFef8CicHb8bGP6MiKBQi43w50FxJWhKwP QwBBuzeQeiPVbv2+aI78zWXKpRQwNITKpPR+kMX2dIpqBPiEyXhPrp5Fq7nb6aaLw7qi NZWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="l7/S2o3n"; 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 x20si2977929oix.155.2020.02.14.08.39.56; Fri, 14 Feb 2020 08:40: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="l7/S2o3n"; 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 S2405541AbgBNQjV (ORCPT + 99 others); Fri, 14 Feb 2020 11:39:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:60018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405677AbgBNQXg (ORCPT ); Fri, 14 Feb 2020 11:23:36 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 3EF9224784; Fri, 14 Feb 2020 16:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697416; bh=Euz8prmoV/9Omi9CY0OJt7pU2e0BfM7/YWlxm/rXuLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l7/S2o3nc+sqBYWT4gJXeWCFzY061Sm4YuUCNRaRGfOrXPJWjUSKTHe18i9Ofsde3 /gv/mVpk6l8CX8hcXalgiXzrEfZGmfQq4lmqz0J5rHTqbtQRXCIgXWfn7h5Hy5epqF c77UQzX6tCJZAnVHHzkvGrsjbu0FqK+0R7KcmavA= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wang Hai , Hulk Robot , "David S . Miller" , Sasha Levin , linux-ide@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH AUTOSEL 4.9 106/141] ide: remove set but not used variable 'hwif' Date: Fri, 14 Feb 2020 11:20:46 -0500 Message-Id: <20200214162122.19794-106-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-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: Wang Hai [ Upstream commit 98949a1946d70771789def0c9dbc239497f9f138 ] Fix the following gcc warning: drivers/ide/pmac.c: In function pmac_ide_setup_device: drivers/ide/pmac.c:1027:14: warning: variable hwif set but not used [-Wunused-but-set-variable] Fixes: d58b0c39e32f ("powerpc/macio: Rework hotplug media bay support") Reported-by: Hulk Robot Signed-off-by: Wang Hai Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/ide/pmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c index b20025a5a8d93..9c48ff85bbbbb 100644 --- a/drivers/ide/pmac.c +++ b/drivers/ide/pmac.c @@ -1024,7 +1024,6 @@ static int pmac_ide_setup_device(pmac_ide_hwif_t *pmif, struct ide_hw *hw) struct device_node *np = pmif->node; const int *bidp; struct ide_host *host; - ide_hwif_t *hwif; struct ide_hw *hws[] = { hw }; struct ide_port_info d = pmac_port_info; int rc; @@ -1080,7 +1079,7 @@ static int pmac_ide_setup_device(pmac_ide_hwif_t *pmif, struct ide_hw *hw) rc = -ENOMEM; goto bail; } - hwif = pmif->hwif = host->ports[0]; + pmif->hwif = host->ports[0]; if (on_media_bay(pmif)) { /* Fixup bus ID for media bay */ -- 2.20.1