* [U-Boot-Users] PATCH: fix warning in cpu/arm920t/at91rm9200/i2c.c
@ 2005-04-07 8:54 Steven Scholz
2005-04-07 22:45 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Steven Scholz @ 2005-04-07 8:54 UTC (permalink / raw)
To: u-boot
Hi,
Please consider this trivial patch to fix a compiler warning that appers when
not defining CFG_I2C_EEPROM_ADDR_OVERFLOW:
diff -u -r1.1 i2c.c
--- u-boot/cpu/arm920t/at91rm9200/i2c.c 6 Apr 2005 13:52:34 -0000 1.1
+++ u-boot/cpu/arm920t/at91rm9200/i2c.c 7 Apr 2005 08:52:34 -0000
@@ -140,10 +140,10 @@
i2c_write(unsigned char chip, unsigned int addr, int alen,
unsigned char *buffer,
int len)
{
+#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
int i;
unsigned char *buf;
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
/* we only allow one address byte */
if (alen > 1)
return 1;
--
Steven
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-07 22:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-07 8:54 [U-Boot-Users] PATCH: fix warning in cpu/arm920t/at91rm9200/i2c.c Steven Scholz
2005-04-07 22:45 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox