-
Bug
-
Resolution: Fixed
-
Medium
-
SITSW-4867
-
09.02.00
-
10.01.00
-
OSPI_utilLog2 function definition in ospi_v0.c uses the following for loop:
uint32_t i, k; for(i = 31; i >= 0; i--) { k = (num >> i) & 0x01; if(k == 1) { break; } }
This for loop is an infinite loop. This looks like an unintentional mistake. However, if it is intentional, using
for(;;)
seems a better choice to show the intention.