]> err.no Git - linux-2.6/commitdiff
[MIPS] Remove a duplicated local variable in test_and_clear_bit()
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Wed, 13 Jun 2007 15:56:31 +0000 (00:56 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 26 Jun 2007 17:57:33 +0000 (19:57 +0200)
Fix a sparse warning caused by 2c921d07f8c641e691b0dfd80a5cfe14c60ec489

include2/asm/bitops.h:313:23: warning: symbol 'res' shadows an earlier one
include2/asm/bitops.h:309:16: originally declared here

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/bitops.h

index ffe245b4258f3303bbaf6088c7306f7924b1c2f7..d9e81af53f78b3f1528cd3ed27b165fca5cf0e61 100644 (file)
@@ -310,7 +310,7 @@ static inline int test_and_clear_bit(unsigned long nr,
 
        if (cpu_has_llsc && R10000_LLSC_WAR) {
                unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
-               unsigned long temp, res;
+               unsigned long temp;
 
                __asm__ __volatile__(
                "       .set    mips3                                   \n"