1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-01 08:31:19 +02:00

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
This commit is contained in:
Florian Fainelli 2008-11-20 21:26:11 +00:00
parent 107aa04e06
commit e854a26332

@ -184,7 +184,7 @@ static int bcm963xx_detect_cfe(struct mtd_info *master)
ret = master->read(master, idoffset, 8, &retlen, (void *)buf);
buf[retlen] = 0;
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)