From: Priyanka Jain Date: Thu, 30 Jul 2015 04:50:18 +0000 (+0530) Subject: powerpc/T104xRDB: Remove vbank check redundant code X-Git-Tag: KARO-TX6-2015-09-18~1003 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=6e525e1c51a8fdf555f816e314f11063614ca287;p=karo-tx-uboot.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; }