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 | |
parent | e04dd12bf1fd04a95b9a7c36ddc5ee5ddeb06dab (diff) | |
download | u-boot-imx-f2af1c37a09cdd28a78fde4ee4275aedf59be620.zip u-boot-imx-f2af1c37a09cdd28a78fde4ee4275aedf59be620.tar.gz u-boot-imx-f2af1c37a09cdd28a78fde4ee4275aedf59be620.tar.bz2 |
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')
-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 c4b658d..d982dfc 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; } |