[PATCH 4/6] w35und: remove abs() and BIT() macros

From: Pekka J Enberg
Date: Wed Oct 29 2008 - 14:12:03 EST


From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>

We can use the kernel built-in abs() and BIT() macros the just fine.

Cc: Pavel Machek <pavel@xxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
---
drivers/staging/winbond/linux/common.h | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/winbond/linux/common.h b/drivers/staging/winbond/linux/common.h
index 046dab6..f171b88 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
--
1.5.3.7

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/