aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/block2mtd.c
diff options
context:
space:
mode:
authorJoern Engel <joern@wh.fh-wedel.de>2007-02-20 14:21:41 -0500
committerJoern Engel <joern@wh.fh-wedel.de>2007-02-20 14:21:41 -0500
commit8870530a4053add56a2c0eb90a3669facb9f7117 (patch)
treef9fd22feedb9e157fea8d0178cb3bd463558865d /drivers/mtd/devices/block2mtd.c
parent0ffb74ccc06a112042adfaf8229684b78202bcae (diff)
[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: Jörn Engel <joern@lazybastard.org>
Diffstat (limited to 'drivers/mtd/devices/block2mtd.c')
-rw-r--r--drivers/mtd/devices/block2mtd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/devices/block2mtd.c b/drivers/mtd/devices/block2mtd.c
index 6a9fb80339fb..3bc92153e2b6 100644
--- a/drivers/mtd/devices/block2mtd.c
+++ b/drivers/mtd/devices/block2mtd.c
@@ -308,9 +308,9 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size)
308 /* We might not have rootfs mounted at this point. Try 308 /* We might not have rootfs mounted at this point. Try
309 to resolve the device name by other means. */ 309 to resolve the device name by other means. */
310 310
311 dev_t dev = name_to_dev_t(devname); 311 dev_t devt = name_to_dev_t(devname);
312 if (dev != 0) { 312 if (devt) {
313 bdev = open_by_devnum(dev, FMODE_WRITE | FMODE_READ); 313 bdev = open_by_devnum(devt, FMODE_WRITE | FMODE_READ);
314 } 314 }
315 } 315 }
316#endif 316#endif