Browse Source

Prevent the MTD map to fail, somehow detect_cfe will read the tag plus some garbage, therefore making a simple strcmp will fail

SVN-Revision: 13299
Florian Fainelli 17 years ago
parent
commit
e854a26332
1 changed files with 1 additions and 1 deletions
  1. 1 1
      target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c

+ 1 - 1
target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c

@@ -184,7 +184,7 @@ static int bcm963xx_detect_cfe(struct mtd_info *master)
        ret = master->read(master, idoffset, 8, &retlen, (void *)buf);
        ret = master->read(master, idoffset, 8, &retlen, (void *)buf);
        buf[retlen] = 0;
        buf[retlen] = 0;
        printk("bcm963xx: Read Signature value of %s\n", buf);
        printk("bcm963xx: Read Signature value of %s\n", buf);
-       return strncmp(idstring,buf,8);
+       return strncmp(idstring, buf, 8);
 }
 }
 
 
 static int __init bcm963xx_mtd_init(void)
 static int __init bcm963xx_mtd_init(void)