diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-11-20 21:26:11 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-11-20 21:26:11 +0000 |
commit | e854a26332784553a51aa31fa2d3b2884f8a75ae (patch) | |
tree | 3939d11cfb36e3b245b1d972e86c85a9539b1c70 /target/linux/brcm63xx/files | |
parent | 107aa04e066d78d74a04a4be343939558543c391 (diff) | |
download | mtk-20170518-e854a26332784553a51aa31fa2d3b2884f8a75ae.zip mtk-20170518-e854a26332784553a51aa31fa2d3b2884f8a75ae.tar.gz mtk-20170518-e854a26332784553a51aa31fa2d3b2884f8a75ae.tar.bz2 |
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
Diffstat (limited to 'target/linux/brcm63xx/files')
-rw-r--r-- | target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c index 9543c17..dc1508b 100644 --- a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c +++ b/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); 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) |