summaryrefslogtreecommitdiff
path: root/board/evb64260
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-09 09:28:56 +0000
committerWolfgang Denk <wd@denx.de>2011-11-16 21:03:30 +0100
commitd3a1b1bc1dd90093477d138c054b352e1839b289 (patch)
tree15baf516c344c024f14d664a9c1842344c7de88f /board/evb64260
parentfecf63e41e73ad5fc1d941d7eefc7338f7c34edd (diff)
board/evb64260/i2c.c: Fix GCC 4.6 build warnings
Fix: i2c.c: In function 'i2c_init': i2c.c:23:15: warning: variable 'actualFreq' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Eran Man <eran@nbase.co.il> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/evb64260')
-rw-r--r--board/evb64260/i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/evb64260/i2c.c b/board/evb64260/i2c.c
index 573f31f9570..3eae3d903f1 100644
--- a/board/evb64260/i2c.c
+++ b/board/evb64260/i2c.c
@@ -20,7 +20,7 @@ static void
i2c_init(int speed, int slaveaddr)
{
unsigned int n, m, freq, margin, power;
- unsigned int actualFreq, actualN = 0, actualM = 0;
+ unsigned int actualN = 0, actualM = 0;
unsigned int control, status;
unsigned int minMargin = 0xffffffff;
unsigned int tclk = 125000000;
@@ -37,7 +37,6 @@ i2c_init(int speed, int slaveaddr)
margin = freq - speed;
if (margin < minMargin) {
minMargin = margin;
- actualFreq = freq;
actualN = n;
actualM = m;
}