diff options
author | Priyanka Jain <Priyanka.Jain@freescale.com> | 2015-07-30 10:20:18 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-07-31 08:56:11 -0700 |
commit | f2af1c37a09cdd28a78fde4ee4275aedf59be620 (patch) | |
tree | 770892898365a2c71d0ff1e7e435db28fd2a9325 /board/freescale/t104xrdb | |
parent | e04dd12bf1fd04a95b9a7c36ddc5ee5ddeb06dab (diff) | |
download | u-boot-f2af1c37a09cdd28a78fde4ee4275aedf59be620.tar.gz |
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/freescale/t104xrdb')
-rw-r--r-- | board/freescale/t104xrdb/t104xrdb.c | 5 |
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; } |