]> git.sur5r.net Git - u-boot/commitdiff
powerpc/T104xRDB: Remove vbank check redundant code
authorPriyanka Jain <Priyanka.Jain@freescale.com>
Thu, 30 Jul 2015 04:50:18 +0000 (10:20 +0530)
committerYork Sun <yorksun@freescale.com>
Fri, 31 Jul 2015 15:56:11 +0000 (08:56 -0700)
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>
board/freescale/t104xrdb/t104xrdb.c

index c4b658d55d276abe16e641b3c72049f769642c35..d982dfc872c4c7e9fc55406964c0b640f82a21dd 100644 (file)
@@ -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;
 }