diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2010-11-12 10:47:07 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-17 00:39:09 +0300 |
commit | ef1b21f7eb074a8c8ddfea70ed70e988545c8d54 (patch) | |
tree | 11cde08cd9de612f5fee371d618b6cd9dc449fc5 /drivers/net/wireless/iwlwifi/iwl-helpers.h | |
parent | 70f3876f09ccf1f2819aee6caee9266b2c4b1622 (diff) | |
download | linux-ef1b21f7eb074a8c8ddfea70ed70e988545c8d54.tar.xz |
iwlwifi: kill elapsed_jiffies
Subtract of jiffies is fine even if one variable overwrap.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-helpers.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-helpers.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-helpers.h b/drivers/net/wireless/iwlwifi/iwl-helpers.h index 1aaef70deaec..923368304153 100644 --- a/drivers/net/wireless/iwlwifi/iwl-helpers.h +++ b/drivers/net/wireless/iwlwifi/iwl-helpers.h @@ -44,15 +44,6 @@ static inline struct ieee80211_conf *ieee80211_get_hw_conf( return &hw->conf; } -static inline unsigned long elapsed_jiffies(unsigned long start, - unsigned long end) -{ - if (end >= start) - return end - start; - - return end + (MAX_JIFFY_OFFSET - start) + 1; -} - /** * iwl_queue_inc_wrap - increment queue index, wrap back to beginning * @index -- current index |