diff options
author | Mike McCormack <mikem@ring3k.org> | 2011-06-19 21:47:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-20 15:47:43 -0400 |
commit | e10542c447abf7c840931ff12f7d0dee976ca2ea (patch) | |
tree | ae254d633339b2617e4062fe070d2f4bc274cfb2 /drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | |
parent | 4b9d8d67b44aae18e1c4b71281f5cfc0f2105cf6 (diff) |
rtlwifi: rtl8192{c,ce,cu,se}: Remove comparisons of booleans with true
These are a potential source of confusion, as most C code treats all
non-zero values as true.
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192ce/trx.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c index be375214ad9e..230bbe900d8d 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | |||
@@ -678,7 +678,7 @@ bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw, | |||
678 | GET_RX_DESC_PAGGR(pdesc)); | 678 | GET_RX_DESC_PAGGR(pdesc)); |
679 | 679 | ||
680 | rx_status->mactime = GET_RX_DESC_TSFL(pdesc); | 680 | rx_status->mactime = GET_RX_DESC_TSFL(pdesc); |
681 | if (phystatus == true) { | 681 | if (phystatus) { |
682 | p_drvinfo = (struct rx_fwinfo_92c *)(skb->data + | 682 | p_drvinfo = (struct rx_fwinfo_92c *)(skb->data + |
683 | stats->rx_bufshift); | 683 | stats->rx_bufshift); |
684 | 684 | ||
@@ -927,7 +927,7 @@ void rtl92ce_tx_fill_cmddesc(struct ieee80211_hw *hw, | |||
927 | 927 | ||
928 | void rtl92ce_set_desc(u8 *pdesc, bool istx, u8 desc_name, u8 *val) | 928 | void rtl92ce_set_desc(u8 *pdesc, bool istx, u8 desc_name, u8 *val) |
929 | { | 929 | { |
930 | if (istx == true) { | 930 | if (istx) { |
931 | switch (desc_name) { | 931 | switch (desc_name) { |
932 | case HW_DESC_OWN: | 932 | case HW_DESC_OWN: |
933 | wmb(); | 933 | wmb(); |
@@ -968,7 +968,7 @@ u32 rtl92ce_get_desc(u8 *p_desc, bool istx, u8 desc_name) | |||
968 | { | 968 | { |
969 | u32 ret = 0; | 969 | u32 ret = 0; |
970 | 970 | ||
971 | if (istx == true) { | 971 | if (istx) { |
972 | switch (desc_name) { | 972 | switch (desc_name) { |
973 | case HW_DESC_OWN: | 973 | case HW_DESC_OWN: |
974 | ret = GET_TX_DESC_OWN(p_desc); | 974 | ret = GET_TX_DESC_OWN(p_desc); |