summaryrefslogtreecommitdiffstats
path: root/arch/ia64/include/asm/bitops.h
diff options
context:
space:
mode:
authorJohannes Weiner <[hannes@cmpxchg.org]>2009-08-11 23:52:10 +0200
committerFenghua Yu <fenghua.yu@intel.com>2009-08-11 23:52:10 +0200
commit8d6f9af91959256244878cd801c1c969e66cd093 (patch)
treebd1dde34d4a3ef472d0a35d05b11320f762fd51f /arch/ia64/include/asm/bitops.h
parentBug Fix arch/ia64/kernel/pci-dma.c: fix recursive dma_supported() call in iom... (diff)
downloadlinux-8d6f9af91959256244878cd801c1c969e66cd093.tar.xz
linux-8d6f9af91959256244878cd801c1c969e66cd093.zip
ia64: boolean __test_and_clear_bit
__test_and_clear_bit() returns a bitfield with the tested-for bit set. Make it consistent with the other bitops - of ia64 but also every other architecture - and return a boolean value. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Fenghua Yu <fenghua.yu@intel.com>
Diffstat (limited to 'arch/ia64/include/asm/bitops.h')
-rw-r--r--arch/ia64/include/asm/bitops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/bitops.h b/arch/ia64/include/asm/bitops.h
index e2ca80037335..57a2787bc9fb 100644
--- a/arch/ia64/include/asm/bitops.h
+++ b/arch/ia64/include/asm/bitops.h
@@ -286,7 +286,7 @@ __test_and_clear_bit(int nr, volatile void * addr)
{
__u32 *p = (__u32 *) addr + (nr >> 5);
__u32 m = 1 << (nr & 31);
- int oldbitset = *p & m;
+ int oldbitset = (*p & m) != 0;
*p &= ~m;
return oldbitset;