Skip to content
Snippets Groups Projects
Commit f2af1c37 authored by Priyanka Jain's avatar Priyanka Jain Committed by York Sun
Browse files

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: default avatarPriyanka Jain <Priyanka.Jain@freescale.com>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent e04dd12b
No related branches found
No related tags found
No related merge requests found
...@@ -39,10 +39,7 @@ int checkboard(void) ...@@ -39,10 +39,7 @@ int checkboard(void)
sw = CPLD_READ(flash_ctl_status); sw = CPLD_READ(flash_ctl_status);
sw = ((sw & CPLD_LBMAP_MASK) >> CPLD_LBMAP_SHIFT); sw = ((sw & CPLD_LBMAP_MASK) >> CPLD_LBMAP_SHIFT);
if (sw <= 7)
printf("vBank: %d\n", sw); printf("vBank: %d\n", sw);
else
printf("Unsupported Bank=%x\n", sw);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment