From b108da75862b231ada8f26002138161214ca62d1 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Fri, 23 Oct 2015 17:55:07 +0300 Subject: [PATCH] staging: sm750fb: remove defintion of offsetof There is no need to redefine offsetof Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman --- drivers/staging/sm750fb/sm750.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.h b/drivers/staging/sm750fb/sm750.h index 52fe945..e74a3e1 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; -- 2.7.4