dect
/
linux-2.6
Archived
13
0
Fork 0

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.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
This commit is contained in:
Helge Deller 2010-02-02 19:06:23 +00:00 committed by Kyle McMartin
parent 888c31fc83
commit 1d747c7e7b
1 changed files with 1 additions and 1 deletions

View File

@ -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*/