summaryrefslogtreecommitdiffstats
path: root/package/kernel/broadcom-wl/patches/920-aiutils-fix-wrong-misleading-if.patch
blob: c43dca9e896f01e25d054bb3b88e762a15aa5653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/driver/aiutils.c
+++ b/driver/aiutils.c
@@ -228,9 +228,10 @@ ai_scan(si_t *sih, void *regs, uint devid)
 		do {
 			asd = get_asd(sih, &eromptr, 0, j, AD_ST_SLAVE, &addrl, &addrh,
 			              &sizel, &sizeh);
-			if ((asd != 0) && (j == 1) && (sizel == SI_CORE_SIZE))
+			if ((asd != 0) && (j == 1) && (sizel == SI_CORE_SIZE)) {
 				sii->coresba2[idx] = addrl;
 				sii->coresba2_size[idx] = sizel;
+			}
 			j++;
 		} while (asd != 0);