Skip to contentSkip to conversation

mpc83xx: suppress unused variable 'val8' warning

PATCH New Kim Phillips 1 participant 1 message Aug 17, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 mpc83xx: suppress unused variable 'val8' warning

---
 board/freescale/common/pq-mds-pib.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/common/pq-mds-pib.c +2 -1
index 9799117..8c013c7 100644
@@ -22,9 +22,10 @@ int pib_init(void)
 	/* Switch temporarily to I2C bus #2 */
 	orig_i2c_bus = i2c_get_bus_num();
 	i2c_set_bus_num(1);
+
+	val8 = 0;
 #if defined(CONFIG_PCI) && !defined(CONFIG_PCISLAVE)
 	/* Assign PIB PMC slot to desired PCI bus */
-	val8 = 0;
 	i2c_write(0x23, 0x6, 1, &val8, 1);
 	i2c_write(0x23, 0x7, 1, &val8, 1);
 	val8 = 0xff;
Signature · 1 line
1.5.2.2