projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d6d9c3
)
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c: Fix GCC 4.6 build warning
author
Kumar Gala
<galak@kernel.crashing.org>
Wed, 9 Nov 2011 16:00:23 +0000
(10:00 -0600)
committer
Kumar Gala
<galak@kernel.crashing.org>
Fri, 11 Nov 2011 13:48:59 +0000
(07:48 -0600)
Fix:
fsl_lbc.c: In function 'upmconfig':
fsl_lbc.c:110:9: warning: variable 'mdr' set but not used [-Wunused-but-set-variable]
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
index
d78962f
..
587576b
100644
(file)
--- a/
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
+++ b/
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
@@
-107,7
+107,7
@@
void init_early_memctl_regs(void)
void upmconfig(uint upm, uint *table, uint size)
{
fsl_lbc_t *lbc = LBC_BASE_ADDR;
- int i, m
dr, m
ad, old_mad = 0;
+ int i, mad, old_mad = 0;
u32 mask = (~MxMR_OP_MSK & ~MxMR_MAD_MSK);
u32 msel = BR_UPMx_TO_MSEL(upm);
u32 *mxmr = &lbc->mamr + upm;
@@
-138,7
+138,7
@@
void upmconfig(uint upm, uint *table, uint size)
for (i = 0; i < size; i++) {
out_be32(mxmr, (in_be32(mxmr) & mask) | MxMR_OP_WARR | i);
out_be32(&lbc->mdr, table[i]);
-
mdr =
in_be32(&lbc->mdr);
+
(void)
in_be32(&lbc->mdr);
*dummy = 0;
do {
mad = in_be32(mxmr) & MxMR_MAD_MSK;