public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH: fix warning in cpu/arm920t/at91rm9200/i2c.c
Date: Thu, 07 Apr 2005 10:54:11 +0200	[thread overview]
Message-ID: <4254F533.9050201@imc-berlin.de> (raw)

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

             reply	other threads:[~2005-04-07  8:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-07  8:54 Steven Scholz [this message]
2005-04-07 22:45 ` [U-Boot-Users] PATCH: fix warning in cpu/arm920t/at91rm9200/i2c.c Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4254F533.9050201@imc-berlin.de \
    --to=steven.scholz@imc-berlin.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox