Skip to content

Commit

Permalink
parisc: drop unnecessary cast in __ldcw_align() macro
Browse files Browse the repository at this point in the history
__ldcw_align() can directly access the slock member of struct arch_spinlock_t
instead of using an ugly cast.

Signed-off-by: Helge Deller <[email protected]>
Signed-off-by: Kyle McMartin <[email protected]>
  • Loading branch information
hdeller authored and jkkm committed Mar 6, 2010
1 parent 888c31f commit 1d747c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down

0 comments on commit 1d747c7

Please sign in to comment.