mtd: remove unused variable in mtdswap
PATCH 1/1 mtd: remove unused variable in mtdswap
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 <[email protected]>
--- drivers/mtd/mtdswap.c | 3 --- 1 file changed, 3 deletions(-)
drivers/mtd/mtdswap.c +0 -3
@@ -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;
Signature · 1 line
2.9.0
Quoted 10 lines · Arnd Bergmann
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 <[email protected]>
I beat you to it:
https://patchwork.ozlabs.org/patch/793136/
[PATCH] mtd: mtdswap: remove unused variables 'dev' and 'gd'