Search Linux Wireless

[PATCH 2/3] cw1200: use != instead of ^ for comparison

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Compiler output is the same but "!=" is a bit more obvious.

Signed-off-by: Bob Copeland <me@xxxxxxxxxxxxxxx>
---
 drivers/staging/cw1200/sta.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/cw1200/sta.c b/drivers/staging/cw1200/sta.c
index cc9ed7b..42bca38 100644
--- a/drivers/staging/cw1200/sta.c
+++ b/drivers/staging/cw1200/sta.c
@@ -581,7 +581,7 @@ void cw1200_configure_filter(struct ieee80211_hw *dev,
 			(FIF_BCN_PRBRESP_PROMISC |
 			 FIF_PROMISC_IN_BSS |
 			 FIF_PROBE_REQ)) ? 1 : 0;
-	if (priv->listening ^ listening) {
+	if (priv->listening != listening) {
 		priv->listening = listening;
 		wsm_lock_tx(priv);
 		cw1200_update_listening(priv, listening);
-- 
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux