2003-07-12 11:42:35

by Bernardo Innocenti

[permalink] [raw]
Subject: PATCH: remove redundant offsetof() macro in HFS

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.

--- linux-2.5.x/include/linux/hfs_sysdep.h.orig 2003-07-12 13:52:56.000000000 +0200
+++ linux-2.5.x/include/linux/hfs_sysdep.h 2003-07-12 13:53:02.000000000 +0200
@@ -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;

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