Commit 8870530a authored by Joern Engel's avatar Joern Engel

[PATCH] [MTD] block2mtd: remove warning

drivers/mtd/devices/block2mtd.c:311:9: warning: symbol 'dev' shadows an earlier one
drivers/mtd/devices/block2mtd.c:294:23: originally declared here
Signed-off-by: default avatarJörn Engel <joern@lazybastard.org>
parent 0ffb74cc
...@@ -308,9 +308,9 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size) ...@@ -308,9 +308,9 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size)
/* We might not have rootfs mounted at this point. Try /* We might not have rootfs mounted at this point. Try
to resolve the device name by other means. */ to resolve the device name by other means. */
dev_t dev = name_to_dev_t(devname); dev_t devt = name_to_dev_t(devname);
if (dev != 0) { if (devt) {
bdev = open_by_devnum(dev, FMODE_WRITE | FMODE_READ); bdev = open_by_devnum(devt, FMODE_WRITE | FMODE_READ);
} }
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment