diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-11-14 16:38:08 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-19 09:06:17 -0500 |
commit | 6ca6ebc1606c6fa7e8931445e84f21f4843e3bab (patch) | |
tree | e07c0939d8298933e04f88fb142482398c82db2c /drivers/net/wireless/iwlwifi/pcie/internal.h | |
parent | 686681b066fed089d14c9cee60d9d95680da6cdb (diff) |
iwlwifi: make iwl_queue_used return bool
Also, prefer the if(!X) notation over if(X == 0).
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie/internal.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/internal.h b/drivers/net/wireless/iwlwifi/pcie/internal.h index 0d61e91c0a6f..e6b6dba982c7 100644 --- a/drivers/net/wireless/iwlwifi/pcie/internal.h +++ b/drivers/net/wireless/iwlwifi/pcie/internal.h | |||
@@ -423,7 +423,7 @@ static inline void iwl_stop_queue(struct iwl_trans *trans, | |||
423 | txq->q.id); | 423 | txq->q.id); |
424 | } | 424 | } |
425 | 425 | ||
426 | static inline int iwl_queue_used(const struct iwl_queue *q, int i) | 426 | static inline bool iwl_queue_used(const struct iwl_queue *q, int i) |
427 | { | 427 | { |
428 | return q->write_ptr >= q->read_ptr ? | 428 | return q->write_ptr >= q->read_ptr ? |
429 | (i >= q->read_ptr && i < q->write_ptr) : | 429 | (i >= q->read_ptr && i < q->write_ptr) : |