Message ID | 20170725154208.355381-1-arnd@arndb.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp714940qge; Tue, 25 Jul 2017 08:42:46 -0700 (PDT) X-Received: by 10.84.225.129 with SMTP id u1mr21860282plj.255.1500997366595; Tue, 25 Jul 2017 08:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500997366; cv=none; d=google.com; s=arc-20160816; b=tsRHRi48xexvSyCq/0cOYqrjY2H/ptLrWyCl00DNrBEpoPuH1Bq7CsWPEVUu0SGMzQ s9dR6PqZIaB2VizHSl7s34dbyrXjDI42tO6gGgo25X3FIEsAgoZs/2OUo7GoJxS/AsIx Y+oVv65ylkTGA/f9sGE1mAIkC4JZi7Yop6n4knhnGYja9SaJqoAppKMgEANXKJUKDFJJ mCjtP2mloMkJViz7Mmlqq9GoQvYMSsv6txOqxD4zVrdQMxSE5S/QjJiuSTeWxUkni8bE JfMd+rhazw0xdueg9XJNgwCjWkRkYLoerKMRzijp4btvY+TV5wd05rsDRpHM9h/SYTvR kGXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=JuPssPEIy5ajxEZ/H1Ut82wYQv9cLv1J+K1FIiPd9fo=; b=B0JbqKSdEYNoyN74znwSGzmppgbd2FJslat7h4RI+Wpo6TzIKKx9EJFEj6p3MD1qkZ /TIYXF0AWaQNp2M0d9VGAOnNk86k6mZkKSDjlo8rJUIMn50XDDIwoyB6eTl6qjRBmEYm 4b+DZkvGvsHloDcxB2Wc0AnGDPNUK/yRRGsldMWlP04CQb6BgrUMA+G3FL8nUDq7S+7y HHzcZVV13Bvt6a16m/MB4onP0bXY+hFn9iraKB5brdI6cyVAlaJa8IwaoDcMSUZoOJfc dHLVrmdt8Uyu2Vor9eJPcwtUh7thObGxVtrgvOb7Q3fP6OxmQAMqmdXg3iuT+NsVLzaE +4lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.b=HBNCiTmX; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: <linux-mtd-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id b9si2597737pll.666.2017.07.25.08.42.46 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jul 2017 08:42:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.b=HBNCiTmX; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=JuPssPEIy5ajxEZ/H1Ut82wYQv9cLv1J+K1FIiPd9fo=; b=HBN CiTmXvcO9ArY5r3ANd13BpasuhwVNSKRYVyF6b/WXg8z0h8h18M5qRXRelpDRM5rVN3lJGCFlfIEe RsrKC2SnDTgJt7h5JwQxtEUFJ7p+Asf2LcEpojmZyCmZFVx7XOwD7EkcI3Ytz7QUyoLrtSMjFsG82 VKycntq/kIa3FcqKnwF2uaDwq+yOGtzqDeZordCcem/53NzgQrnN7aV2qg+m18+4yUFlGBMohwTwX HOkrwbKwdtN8sjHelpVICKs8ifsB8WiM8uAbJ93c98w6wC14hrF13zniN3jmC9FfvjLvzWA+EDmDQ j47V6d0BagitnHKf0M1guL/xuT7+AQA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1da1yq-0003bR-Uy; Tue, 25 Jul 2017 15:42:40 +0000 Received: from mout.kundenserver.de ([212.227.126.135]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1da1ym-0002f5-Qn for linux-mtd@lists.infradead.org; Tue, 25 Jul 2017 15:42:38 +0000 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0Mf66r-1dFump3rNB-00OVjB; Tue, 25 Jul 2017 17:42:11 +0200 From: Arnd Bergmann <arnd@arndb.de> To: David Woodhouse <dwmw2@infradead.org>, Brian Norris <computersforpeace@gmail.com>, Boris Brezillon <boris.brezillon@free-electrons.com>, Marek Vasut <marek.vasut@gmail.com>, Richard Weinberger <richard@nod.at>, Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> Subject: [PATCH] mtd: remove unused variable in mtdswap Date: Tue, 25 Jul 2017 17:41:58 +0200 Message-Id: <20170725154208.355381-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:xrGZII3AUXKnfvmRigHi9zXbM1A+ruBwggSSIQldUDw7YbNYEhK trNfm+B7QQP8hJXxSPt7uL0DEXuXeajliWCM/jZJP3b5cpGSceZLRaCQtdhl4YqxzCGtsSo U9Qz0oWt+o6yYloHEcSc39L3XBC/XBjxTGz+hzGNBGfaYoBcjk2arKXg4uhI9IS4d9ueVKa qqLnsueQllZ2AByYhTL9Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:JZTH1JPNrwE=:ZrKyFCVpdrGOd8iNULPAQm KcUZgqpU9fyFSgj2U8LWzUsRfIs2POohAA5au/9NEWRpN9z63DmTQYN8As8OtM2tl1PyIHu8h eS80DQNWCaUu5RUYu9LCAFEJNvFJdFSZKupmUsSEgO+qT97F4qL4hIOKjrC5GmEHk9YQI4vFq w1vZF6CYnMByJf0Ni5PwvzaF+kGhsj3ohgoo6MbquZvrT4kBBa3FqSft5tw0Bp84jSXL/1xWd 0T6nNZkVHYzqcX3il10nFVVMrKQIibhMGigamGH9BTVwT2VTBtNQdWQWDVEJvVnJBVoPJQ3MH 8oy1ewKPb9nBG6oDLTjVD2DuTt+Iy0Cq4kyXk/El26zU8visx3DZJyqKHaMznEnNLzGaNzCGX RHRCwuKrAODfdOYfxED6nCFRvgKNydvPFvi575xDiHwueulOkSL+eLsflJXeNVMuovisLrvxo Bhl6dP3lLwrhjZtL5awvLfp1hIBs57IernN2a8OYWH7dQWLIR9G1PgYs8MfSYyBRnzOkZYq9T 7jN1+oghyX9F8+FXkJdY2jpt5bL+1JOdG71ZmCbO3Ok06W6+UrwXy9OuYUfhLwe5pYzFSjjD3 3OpMuNgVh2xn9Dr8N1TwwulDFUH8pNclXyOCw2lkrzCPoaZI4J17oaQeVt1rn2fAqZDqViME5 tuVkJR6qj6lPWVgeCq01OqYqx9wt0Qq/4Byjuw3AUqGAY2Ikud2RJH3ZjAdiklT/be6OXVTvu GSgDEQUEKxUeb4kbgnCEC0+vpjIcP5bS4I15XA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170725_084237_198092_ACBD8D43 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [212.227.126.135 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.135 listed in list.dnswl.org] -2.8 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.135 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: Arnd Bergmann <arnd@arndb.de>, Geliang Tang <geliangtang@gmail.com>, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Mario Rugiero <mrugiero@gmail.com>, Colin Ian King <colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org |
diff --git a/drivers/mtd/mtdswap.c b/drivers/mtd/mtdswap.c index 6b17932fe557..7d9080e33865 100644 --- a/drivers/mtd/mtdswap.c +++ b/drivers/mtd/mtdswap.c @@ -1313,9 +1313,6 @@ static const struct file_operations mtdswap_fops = { static int mtdswap_add_debugfs(struct mtdswap_dev *d) { - struct gendisk *gd = d->mbd_dev->disk; - struct device *dev = disk_to_dev(gd); - struct dentry *root = d->mtd->dbg.dfs_dir; struct dentry *dent;
The only user of this variable was removed, leading to a new harmless warning: drivers/mtd/mtdswap.c: In function 'mtdswap_add_debugfs': drivers/mtd/mtdswap.c:1317:17: error: unused variable 'dev' [-Werror=unused-variable] This removes the variable as well. Fixes: e8e3edb95ce6 ("mtd: create per-device and module-scope debugfs entries") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/mtd/mtdswap.c | 3 --- 1 file changed, 3 deletions(-) -- 2.9.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/