From: Jo-Philipp Wich Date: Fri, 17 Feb 2012 09:04:23 +0000 (+0000) Subject: broadcom-diag: add missing brackets breakign the detection logic (#10836) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8dd93fbc1f34747785a3ef43f6180d36df7883fd;p=openwrt%2Fstaging%2Flinusw.git broadcom-diag: add missing brackets breakign the detection logic (#10836) SVN-Revision: 30610 --- diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 4ac271e5cd..090fc5e3d5 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -1142,16 +1142,18 @@ static struct platform_t __init *platform_detect(void) return &platforms[WRTSL54GS]; if (!strcmp(boardtype, "0x0472")) { - if(!strcmp(getvar("boot_hw_model"), "WRT150N")) + if(!strcmp(getvar("boot_hw_model"), "WRT150N")) { if(!strcmp(getvar("boot_hw_ver"), "1")) return &platforms[WRT150NV1]; else if(!strcmp(getvar("boot_hw_ver"), "1.1")) return &platforms[WRT150NV11]; - else if(!strcmp(getvar("boot_hw_model"), "WRT160N")) + } + else if(!strcmp(getvar("boot_hw_model"), "WRT160N")) { if(!strcmp(getvar("boot_hw_ver"), "1.0")) return &platforms[WRT160NV1]; else if(!strcmp(getvar("boot_hw_ver"), "3.0")) return &platforms[WRT160NV3]; + } } /* default to WRT54G */