mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 03:01:09 +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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13299 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e2da4e9b55
commit
fa1bef7a19
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user