summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/pcie/internal.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2012-11-14 23:38:08 +0200
committerJohannes Berg <johannes.berg@intel.com>2012-11-19 15:06:17 +0100
commit6ca6ebc1606c6fa7e8931445e84f21f4843e3bab (patch)
treee07c0939d8298933e04f88fb142482398c82db2c /drivers/net/wireless/iwlwifi/pcie/internal.h
parent686681b066fed089d14c9cee60d9d95680da6cdb (diff)
downloadblackbird-op-linux-6ca6ebc1606c6fa7e8931445e84f21f4843e3bab.tar.gz
blackbird-op-linux-6ca6ebc1606c6fa7e8931445e84f21f4843e3bab.zip
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,
txq->q.id);
}
-static inline int iwl_queue_used(const struct iwl_queue *q, int i)
+static inline bool iwl_queue_used(const struct iwl_queue *q, int i)
{
return q->write_ptr >= q->read_ptr ?
(i >= q->read_ptr && i < q->write_ptr) :
OpenPOWER on IntegriCloud