projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04dd12
)
powerpc/T104xRDB: Remove vbank check redundant code
author
Priyanka Jain
<Priyanka.Jain@freescale.com>
Thu, 30 Jul 2015 04:50:18 +0000
(10:20 +0530)
committer
York 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
patch
|
blob
|
history
diff --git
a/board/freescale/t104xrdb/t104xrdb.c
b/board/freescale/t104xrdb/t104xrdb.c
index c4b658d55d276abe16e641b3c72049f769642c35..d982dfc872c4c7e9fc55406964c0b640f82a21dd 100644
(file)
--- 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;
}