aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/pcie/internal.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2012-11-14 16:38:08 -0500
committerJohannes Berg <johannes.berg@intel.com>2012-11-19 09:06:17 -0500
commit6ca6ebc1606c6fa7e8931445e84f21f4843e3bab (patch)
treee07c0939d8298933e04f88fb142482398c82db2c /drivers/net/wireless/iwlwifi/pcie/internal.h
parent686681b066fed089d14c9cee60d9d95680da6cdb (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.h2
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
426static inline int iwl_queue_used(const struct iwl_queue *q, int i) 426static 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) :