Skip to content

Commit

Permalink
[MIPS] Remove a duplicated local variable in test_and_clear_bit()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Jun 26, 2007
1 parent a76f3a4 commit 8e09ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-mips/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8e09ffb

Please sign in to comment.