Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8870530a4053add56a2c0eb90a3669facb9f7117
Commit:     8870530a4053add56a2c0eb90a3669facb9f7117
Parent:     0ffb74ccc06a112042adfaf8229684b78202bcae
Author:     Joern Engel <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 20 20:21:41 2007 +0100
Committer:  Joern Engel <[EMAIL PROTECTED]>
CommitDate: Tue Feb 20 20:21:41 2007 +0100

    [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 <[EMAIL PROTECTED]>
---
 drivers/mtd/devices/block2mtd.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/devices/block2mtd.c b/drivers/mtd/devices/block2mtd.c
index 6a9fb80..3bc9215 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)
                /* 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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to