staging: sm750fb: remove defintion of offsetof
authorMike Rapoport <mike.rapoport@gmail.com>
Fri, 23 Oct 2015 14:55:07 +0000 (17:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:04:13 +0000 (19:04 -0700)
There is no need to redefine offsetof

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.h

index 52fe945101c8fe255ef67cdf424dc51c4ef51abc..e74a3e15d251d1c044720d0e26b618cbf4b014e5 100644 (file)
@@ -155,10 +155,6 @@ struct lynxfb_par {
        struct lynx_share *share;
 };
 
-#ifndef offsetof
-#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
-#endif
-
 static inline unsigned long ps_to_hz(unsigned int psvalue)
 {
        unsigned long long numerator = 1000*1000*1000*1000ULL;