summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-helpers.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-09-22 18:02:12 +0200
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2010-10-07 15:53:00 -0700
commita313f3839eeeebb3cbbcf1fbd2aee92bde389032 (patch)
tree3fa94fcf72239e0c544f5f733a0080a400913079 /drivers/net/wireless/iwlwifi/iwl-helpers.h
parent0de76736552cff02cc6ee4bae41e5502d7673f8e (diff)
downloadblackbird-op-linux-a313f3839eeeebb3cbbcf1fbd2aee92bde389032.tar.gz
blackbird-op-linux-a313f3839eeeebb3cbbcf1fbd2aee92bde389032.zip
iwlwifi: remove iwl_check_bits
The function is used exactly once, and the caller doesn't even need the special check, it can be simplified to a simple bit check. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-helpers.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-helpers.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-helpers.h b/drivers/net/wireless/iwlwifi/iwl-helpers.h
index 621abe3c5afc..1aaef70deaec 100644
--- a/drivers/net/wireless/iwlwifi/iwl-helpers.h
+++ b/drivers/net/wireless/iwlwifi/iwl-helpers.h
@@ -44,11 +44,6 @@ static inline struct ieee80211_conf *ieee80211_get_hw_conf(
return &hw->conf;
}
-static inline int iwl_check_bits(unsigned long field, unsigned long mask)
-{
- return ((field & mask) == mask) ? 1 : 0;
-}
-
static inline unsigned long elapsed_jiffies(unsigned long start,
unsigned long end)
{
OpenPOWER on IntegriCloud