Skip to contentSkip to conversation

parisc: drop unnecessary cast in __ldcw_align() macro

PATCH New Helge Deller 1 participant 1 message Feb 2, 2010 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: drop unnecessary cast in __ldcw_align() macro

__ldcw_align() can directly access the slock member of struct arch_spinlock_t instead of using an ugly cast.

arch/parisc/include/asm/system.h +1 -1
@@ -160,7 +160,7 @@ static inline void set_eiem(unsigned long val)
    ldcd). */
 
 #define __PA_LDCW_ALIGNMENT	4
-#define __ldcw_align(a) ((volatile unsigned int *)a)
+#define __ldcw_align(a) (&(a)->slock)
 #define __LDCW	"ldcw,co"
 
 #endif /*!CONFIG_PA20*/