Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752898AbdGYPnH (ORCPT ); Tue, 25 Jul 2017 11:43:07 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:64829 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752625AbdGYPnD (ORCPT ); Tue, 25 Jul 2017 11:43:03 -0400 From: Arnd Bergmann To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen Cc: Arnd Bergmann , Mario Rugiero , Colin Ian King , Geliang Tang , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org 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== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 30 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 --- drivers/mtd/mtdswap.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.9.0