rsi: bool tests do not need comparison
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 19 Dec 2015 16:39:45 +0000 (17:39 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 30 Dec 2015 15:34:26 +0000 (17:34 +0200)
This is an API consolidation only. Bool initializations should
use true and false thus bool tests don't need an explicit comparison.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mgmt.c

index 0391406..e43b59d 100644 (file)
@@ -1226,7 +1226,7 @@ int rsi_send_block_unblock_frame(struct rsi_common *common, bool block_event)
        mgmt_frame->desc_word[0] = cpu_to_le16(RSI_WIFI_MGMT_Q << 12);
        mgmt_frame->desc_word[1] = cpu_to_le16(BLOCK_HW_QUEUE);
 
-       if (block_event == true) {
+       if (block_event) {
                rsi_dbg(INFO_ZONE, "blocking the data qs\n");
                mgmt_frame->desc_word[4] = cpu_to_le16(0xf);
        } else {