From: Pekka Enberg Date: Wed, 29 Oct 2008 18:11:13 +0000 (+0200) Subject: Staging: w35und: remove abs() and BIT() macros X-Git-Tag: v2.6.29-rc1~228^2~210 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4460a0b4d5d9e0b5695365a1a5815e0f4981e01e;p=linux-2.6-omap-h63xx.git Staging: w35und: remove abs() and BIT() macros We can use the kernel built-in abs() and BIT() macros the just fine. Acked-by: Pavel Machek Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/winbond/linux/common.h b/drivers/staging/winbond/linux/common.h index 046dab6b7bf..f171b881d95 100644 --- a/drivers/staging/winbond/linux/common.h +++ b/drivers/staging/winbond/linux/common.h @@ -48,16 +48,9 @@ #define STATUS_MEDIA_CONNECT 1 #define STATUS_MEDIA_DISCONNECT 0 -#ifndef BIT -#define BIT(x) (1 << (x)) -#endif - //================================================================================================== // Common function definition //================================================================================================== -#ifndef abs -#define abs(_T) ((_T) < 0 ? -_T : _T) -#endif #define DEBUG_ENABLED #define ETH_LENGTH_OF_ADDRESS 6 #ifdef DEBUG_ENABLED