Title: [7721] trunk/arch/blackfin/include/asm/bitops.h: Remove useless code.
Revision
7721
Author
adamliyi
Date
2009-10-28 02:43:00 -0400 (Wed, 28 Oct 2009)

Log Message

Remove useless code. This code looks like:
#ifndef CONFIG_SMP
#else
# ifndef CONFIG_SMP
test_bit()
# endif
#endif

Modified Paths

Diff

Modified: trunk/arch/blackfin/include/asm/bitops.h (7720 => 7721)


--- trunk/arch/blackfin/include/asm/bitops.h	2009-10-27 10:19:14 UTC (rev 7720)
+++ trunk/arch/blackfin/include/asm/bitops.h	2009-10-28 06:43:00 UTC (rev 7721)
@@ -179,18 +179,6 @@
 	return (old & mask) != 0;
 }
 
-#ifndef CONFIG_SMP
-/**
- * test_bit - Determine whether a bit is set
- * @nr: bit number to test
- * @addr: Address to start counting from
- */
-static inline int test_bit(int nr, const volatile unsigned long *addr)
-{
-	return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1)));
-}
-#endif
-
 #include <asm-generic/bitops/find.h>
 #include <asm-generic/bitops/hweight.h>
 #include <asm-generic/bitops/lock.h>
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to