]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
board/netta/codec.c: Fix GCC 4.6 build warnings
authorWolfgang Denk <wd@denx.de>
Fri, 4 Nov 2011 15:55:29 +0000 (15:55 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:12:49 +0000 (22:12 +0100)
Fix:
codec.c: In function 's_write_BR':
codec.c:1389:15: warning: variable 'v' set but not used
[-Wunused-but-set-variable]
codec.c: In function 's_write_OR':
codec.c:1400:15: warning: variable 'v' set but not used
[-Wunused-but-set-variable]
codec.c: In function 's_write_NR':
codec.c:1411:15: warning: variable 'v' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/netta/codec.c

index c8d31d72e4cff76c8e666d1851f33e0149b5c745..e303aa47802fdb01dba8640769e9723369356389 100644 (file)
@@ -1386,34 +1386,31 @@ static inline unsigned int s_transfer_internal(int s_id, unsigned int address, u
 static void s_write_BR(int s_id, unsigned int regno, unsigned int val)
 {
        unsigned int address;
-       unsigned int v;
 
        address = 0x70 | (regno & 15);
        val &= 0xff;
 
-       v = s_transfer_internal(s_id, address, val);
+       (void)s_transfer_internal(s_id, address, val);
 }
 
 static void s_write_OR(int s_id, unsigned int regno, unsigned int val)
 {
        unsigned int address;
-       unsigned int v;
 
        address = 0x70 | (regno & 15);
        val &= 0xff;
 
-       v = s_transfer_internal(s_id, address, val);
+       (void)s_transfer_internal(s_id, address, val);
 }
 
 static void s_write_NR(int s_id, unsigned int regno, unsigned int val)
 {
        unsigned int address;
-       unsigned int v;
 
        address = (regno & 7) << 4;
        val &= 0xf;
 
-       v = s_transfer_internal(s_id, address | val, 0x00);
+       (void)s_transfer_internal(s_id, address | val, 0x00);
 }
 
 #define BR7_IFR                        0x08    /* IDL2 free run */