diff options
author | Brian Norris <computersforpeace@gmail.com> | 2017-07-25 02:00:46 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2017-07-25 02:04:33 +0200 |
commit | 1fbef470f3691a4a8afc4937c4ad1901e42901c4 (patch) | |
tree | 7aa6591d5ea883c187ba66a9b6f4064aa4ff0bea /drivers/mtd/mtdswap.c | |
parent | mtd: create per-device and module-scope debugfs entries (diff) | |
download | linux-1fbef470f3691a4a8afc4937c4ad1901e42901c4.tar.xz linux-1fbef470f3691a4a8afc4937c4ad1901e42901c4.zip |
mtd: mtdswap: remove unused variables 'dev' and 'gd'
This was changed recently (commit e8e3edb95ce6 ("mtd: create per-device
and module-scope debugfs entries")) and some compilers are complaining:
drivers//mtd/mtdswap.c: In function 'mtdswap_add_debugfs':
>> drivers//mtd/mtdswap.c:1317: warning: unused variable 'dev'
And once we kill 'dev', 'gd' is also unused.
Cc: Mario J. Rugiero <mrugiero@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/mtdswap.c')
-rw-r--r-- | drivers/mtd/mtdswap.c | 3 |
1 files changed, 0 insertions, 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; |