Просмотр исходного кода

broadcom-diag: add missing brackets breakign the detection logic (#10836)

SVN-Revision: 30610
Jo-Philipp Wich 14 лет назад
Родитель
Сommit
8dd93fbc1f
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      package/broadcom-diag/src/diag.c

+ 4 - 2
package/broadcom-diag/src/diag.c

@@ -1142,16 +1142,18 @@ static struct platform_t __init *platform_detect(void)
 				return &platforms[WRTSL54GS];
 				return &platforms[WRTSL54GS];
 
 
 			if (!strcmp(boardtype, "0x0472")) {
 			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"))
 					if(!strcmp(getvar("boot_hw_ver"), "1"))
 						return &platforms[WRT150NV1];
 						return &platforms[WRT150NV1];
 					else if(!strcmp(getvar("boot_hw_ver"), "1.1"))
 					else if(!strcmp(getvar("boot_hw_ver"), "1.1"))
 						return &platforms[WRT150NV11];
 						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"))
 					if(!strcmp(getvar("boot_hw_ver"), "1.0"))
 						return &platforms[WRT160NV1];
 						return &platforms[WRT160NV1];
 					else if(!strcmp(getvar("boot_hw_ver"), "3.0"))
 					else if(!strcmp(getvar("boot_hw_ver"), "3.0"))
 						return &platforms[WRT160NV3];
 						return &platforms[WRT160NV3];
+				}
 			}
 			}
 
 
 			/* default to WRT54G */
 			/* default to WRT54G */