diff options
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index 7d034df250bd..0c2bc061e8f3 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
@@ -939,22 +939,6 @@ static inline bool __b43_warn_on_dummy(bool x) { return x; } | |||
939 | # define B43_WARN_ON(x) __b43_warn_on_dummy(unlikely(!!(x))) | 939 | # define B43_WARN_ON(x) __b43_warn_on_dummy(unlikely(!!(x))) |
940 | #endif | 940 | #endif |
941 | 941 | ||
942 | /** Limit a value between two limits */ | ||
943 | #ifdef limit_value | ||
944 | # undef limit_value | ||
945 | #endif | ||
946 | #define limit_value(value, min, max) \ | ||
947 | ({ \ | ||
948 | typeof(value) __value = (value); \ | ||
949 | typeof(value) __min = (min); \ | ||
950 | typeof(value) __max = (max); \ | ||
951 | if (__value < __min) \ | ||
952 | __value = __min; \ | ||
953 | else if (__value > __max) \ | ||
954 | __value = __max; \ | ||
955 | __value; \ | ||
956 | }) | ||
957 | |||
958 | /* Convert an integer to a Q5.2 value */ | 942 | /* Convert an integer to a Q5.2 value */ |
959 | #define INT_TO_Q52(i) ((i) << 2) | 943 | #define INT_TO_Q52(i) ((i) << 2) |
960 | /* Convert a Q5.2 value to an integer (precision loss!) */ | 944 | /* Convert a Q5.2 value to an integer (precision loss!) */ |