about summary refs log tree commit diff
path: root/arch/i386/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/atomic.h')
-rw-r--r--arch/i386/atomic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/i386/atomic.h b/arch/i386/atomic.h
index 4fe7bded..95fecbdc 100644
--- a/arch/i386/atomic.h
+++ b/arch/i386/atomic.h
@@ -50,16 +50,16 @@ static inline int a_cas(volatile int *p, int t, int s)
 	return t;
 }
 
-static inline void a_or(volatile void *p, int v)
+static inline void a_or(volatile int *p, int v)
 {
 	__asm__( "lock ; orl %1, %0"
-		: "=m"(*(int *)p) : "r"(v) : "memory" );
+		: "=m"(*p) : "r"(v) : "memory" );
 }
 
-static inline void a_and(volatile void *p, int v)
+static inline void a_and(volatile int *p, int v)
 {
 	__asm__( "lock ; andl %1, %0"
-		: "=m"(*(int *)p) : "r"(v) : "memory" );
+		: "=m"(*p) : "r"(v) : "memory" );
 }
 
 static inline int a_swap(volatile int *x, int v)