diff options
author | Abdul Hussain | 2015-06-16 11:44:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-06-17 04:23:25 +0200 |
commit | 5a66bf20b8e17ed3abb1d115049ab9d636bd2d35 (patch) | |
tree | d1fe6617a60107ef39c3730cc83fad174180a013 /drivers/staging/wilc1000/wilc_wlan.c | |
parent | Staging: wilc1000: Assign proper boolean value (diff) | |
download | kernel-qcow2-linux-5a66bf20b8e17ed3abb1d115049ab9d636bd2d35.tar.gz kernel-qcow2-linux-5a66bf20b8e17ed3abb1d115049ab9d636bd2d35.tar.xz kernel-qcow2-linux-5a66bf20b8e17ed3abb1d115049ab9d636bd2d35.zip |
Staging: wilc1000: Boolean tests don't need comparisons
This patch removes unwanted true and false from boolean tests.
Signed-off-by: Abdul Hussain <habdul@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index 762470c4e052..db9e7173c957 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -559,7 +559,7 @@ static int wilc_wlan_txq_add_net_pkt(void *priv, uint8_t *buffer, uint32_t buffe #ifdef TCP_ACK_FILTER tqe->tcp_PendingAck_index = NOT_TCP_ACK; #ifdef TCP_ENHANCEMENTS - if (is_TCP_ACK_Filter_Enabled() == true) + if (is_TCP_ACK_Filter_Enabled()) #endif tcp_process(tqe); #endif @@ -2337,7 +2337,7 @@ u16 Set_machw_change_vir_if(bool bValue) PRINT_ER("Error while Reading reg WILC_CHANGING_VIR_IF\n"); } - if (bValue == true) { + if (bValue) { reg |= (BIT31); } else { reg &= ~(BIT31); |