summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPriyanka Jain <Priyanka.Jain@freescale.com>2015-07-30 10:20:18 +0530
committerYork Sun <yorksun@freescale.com>2015-07-31 08:56:11 -0700
commitf2af1c37a09cdd28a78fde4ee4275aedf59be620 (patch)
tree770892898365a2c71d0ff1e7e435db28fd2a9325 /board
parente04dd12bf1fd04a95b9a7c36ddc5ee5ddeb06dab (diff)
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>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/t104xrdb/t104xrdb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/board/freescale/t104xrdb/t104xrdb.c b/board/freescale/t104xrdb/t104xrdb.c
index c4b658d55d..d982dfc872 100644
--- a/board/freescale/t104xrdb/t104xrdb.c
+++ b/board/freescale/t104xrdb/t104xrdb.c
@@ -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;
}