diff options
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_misc.h')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_misc.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_misc.h b/drivers/scsi/sym53c8xx_2/sym_misc.h index 0433d5d0caf3..430537183c18 100644 --- a/drivers/scsi/sym53c8xx_2/sym_misc.h +++ b/drivers/scsi/sym53c8xx_2/sym_misc.h | |||
@@ -121,9 +121,7 @@ static __inline void sym_que_move(struct sym_quehead *orig, | |||
121 | } | 121 | } |
122 | } | 122 | } |
123 | 123 | ||
124 | #define sym_que_entry(ptr, type, member) \ | 124 | #define sym_que_entry(ptr, type, member) container_of(ptr, type, member) |
125 | ((type *)((char *)(ptr)-(unsigned int)(&((type *)0)->member))) | ||
126 | |||
127 | 125 | ||
128 | #define sym_insque(new, pos) __sym_que_add(new, pos, (pos)->flink) | 126 | #define sym_insque(new, pos) __sym_que_add(new, pos, (pos)->flink) |
129 | 127 | ||