diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-helpers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-helpers.h b/drivers/net/wireless/iwlwifi/iwl-helpers.h index cd2eb184831..cb009f4c401 100644 --- a/drivers/net/wireless/iwlwifi/iwl-helpers.h +++ b/drivers/net/wireless/iwlwifi/iwl-helpers.h | |||
@@ -246,10 +246,10 @@ static inline int iwl_check_bits(unsigned long field, unsigned long mask) | |||
246 | static inline unsigned long elapsed_jiffies(unsigned long start, | 246 | static inline unsigned long elapsed_jiffies(unsigned long start, |
247 | unsigned long end) | 247 | unsigned long end) |
248 | { | 248 | { |
249 | if (end > start) | 249 | if (end >= start) |
250 | return end - start; | 250 | return end - start; |
251 | 251 | ||
252 | return end + (MAX_JIFFY_OFFSET - start); | 252 | return end + (MAX_JIFFY_OFFSET - start) + 1; |
253 | } | 253 | } |
254 | 254 | ||
255 | static inline u8 iwl_get_dma_hi_address(dma_addr_t addr) | 255 | static inline u8 iwl_get_dma_hi_address(dma_addr_t addr) |