Skip to contentSkip to conversation

PATCH: remove redundant offsetof() macro in HFS

PATCH Bernardo Innocenti 1 participant 1 message Jul 12, 2003

lore
Share & tools
lore
#0 lore raw

Hello Oliver,

exactly the same definition of offsetof() is already present in include/linux/stddef.h, therefore this one is redundant.

Applies to 2.5.75.

include/linux/hfs_sysdep.h renamed from include/linux/hfs_sysdep.h.orig +0 -3
@@ -28,9 +28,6 @@
 
 extern struct timezone sys_tz;
 
-#undef offsetof
-#define offsetof(TYPE, MEMB) ((size_t) &((TYPE *)0)->MEMB)
-
 /* Typedefs for integer types by size and signedness */
 typedef __u8            hfs_u8;
 typedef __u16           hfs_u16;
Signature · 4 lines
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html