mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00: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