From: Priyanka Jain Date: Thu, 30 Jul 2015 04:50:18 +0000 (+0530) Subject: powerpc/T104xRDB: Remove vbank check redundant code X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f2af1c37a09cdd28a78fde4ee4275aedf59be620;p=u-boot.git 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 Reviewed-by: York Sun --- 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; }