mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-06 09:21:26 +01:00
powerpc/T104xRDB: Remove vbank check redundant code
sw variable in checkboard function is storing vbank value which can only take 3-bit value. So check of sw value for if greater than 7 is redundant. Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
e04dd12bf1
commit
f2af1c37a0
1 changed files with 1 additions and 4 deletions
|
|
@ -39,10 +39,7 @@ int checkboard(void)
|
|||
sw = CPLD_READ(flash_ctl_status);
|
||||
sw = ((sw & CPLD_LBMAP_MASK) >> CPLD_LBMAP_SHIFT);
|
||||
|
||||
if (sw <= 7)
|
||||
printf("vBank: %d\n", sw);
|
||||
else
|
||||
printf("Unsupported Bank=%x\n", sw);
|
||||
printf("vBank: %d\n", sw);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue