public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] smc91111_eeprom: fix compile warning
Date: Mon,  9 Nov 2009 13:19:58 -0800	[thread overview]
Message-ID: <1257801598-30823-1-git-send-email-biggerbadderben@gmail.com> (raw)

smc91111_eeprom.c:278: warning: suggest parentheses around + or - in operand
smc91111_eeprom.c:281: warning: suggest parentheses around + or - in operand

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
---
 examples/standalone/smc91111_eeprom.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/standalone/smc91111_eeprom.c b/examples/standalone/smc91111_eeprom.c
index 89afc87..345b1ab 100644
--- a/examples/standalone/smc91111_eeprom.c
+++ b/examples/standalone/smc91111_eeprom.c
@@ -275,10 +275,10 @@ void print_macaddr (struct eth_device *dev)
 	printf ("Current MAC Address in SMSC91111 ");
 	SMC_SELECT_BANK (dev, 1);
 	for (i = 0; i < 5; i++) {
-		printf ("%02x:", SMC_inb (dev, ADDR0_REG + i));
+		printf ("%02x:", SMC_inb (dev, (ADDR0_REG + i)));
 	}
 
-	printf ("%02x\n", SMC_inb (dev, ADDR0_REG + 5));
+	printf ("%02x\n", SMC_inb (dev, (ADDR0_REG + 5)));
 
 	i = 0;
 	for (j = 0x20; j < 0x23; j++) {
-- 
1.6.0.4

             reply	other threads:[~2009-11-09 21:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 21:19 Ben Warren [this message]
2009-11-09 21:36 ` [U-Boot] [PATCH] smc91111_eeprom: fix compile warning Mike Frysinger
2009-11-09 21:41   ` Ben Warren

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=1257801598-30823-1-git-send-email-biggerbadderben@gmail.com \
    --to=biggerbadderben@gmail.com \
    --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