From: Mike Rapoport Date: Fri, 23 Oct 2015 14:55:07 +0000 (+0300) Subject: staging: sm750fb: remove defintion of offsetof X-Git-Tag: v4.4-rc1~125^2~347 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b108da75862b231ada8f26002138161214ca62d1;p=linux-2.6-block.git staging: sm750fb: remove defintion of offsetof There is no need to redefine offsetof Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sm750fb/sm750.h b/drivers/staging/sm750fb/sm750.h index 52fe945101c8..e74a3e15d251 100644 --- a/drivers/staging/sm750fb/sm750.h +++ b/drivers/staging/sm750fb/sm750.h @@ -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;