]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] [MTD] block2mtd: remove warning
authorJoern Engel <joern@wh.fh-wedel.de>
Tue, 20 Feb 2007 19:21:41 +0000 (20:21 +0100)
committerJoern Engel <joern@wh.fh-wedel.de>
Tue, 20 Feb 2007 19:21:41 +0000 (20:21 +0100)
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>
drivers/mtd/devices/block2mtd.c

index 6a9fb80339fb6565ccba3b5ee42f7b97be190b91..3bc92153e2b697450fe7ac1e6cb17eb05388fff5 100644 (file)
@@ -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
                   to resolve the device name by other means. */
 
-               dev_t dev = name_to_dev_t(devname);
-               if (dev != 0) {
-                       bdev = open_by_devnum(dev, FMODE_WRITE | FMODE_READ);
+               dev_t devt = name_to_dev_t(devname);
+               if (devt) {
+                       bdev = open_by_devnum(devt, FMODE_WRITE | FMODE_READ);
                }
        }
 #endif