提交 1fbef470 编写于 作者: B Brian Norris

mtd: mtdswap: remove unused variables 'dev' and 'gd'

This was changed recently (commit e8e3edb9 ("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: NBrian Norris <computersforpeace@gmail.com>
上级 e8e3edb9
...@@ -1313,9 +1313,6 @@ static const struct file_operations mtdswap_fops = { ...@@ -1313,9 +1313,6 @@ static const struct file_operations mtdswap_fops = {
static int mtdswap_add_debugfs(struct mtdswap_dev *d) 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 *root = d->mtd->dbg.dfs_dir;
struct dentry *dent; struct dentry *dent;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册