diff options
author | Cristina Opriceana | 2015-03-04 11:37:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-03-07 00:30:07 +0100 |
commit | 19cd22972fbe419235b380a94f31c826809cafec (patch) | |
tree | 9926bb81c9fc9b2a6e50c54251026e2eddcee27d /drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | |
parent | staging: rtl8192e: Remove if conditions. (diff) | |
download | kernel-qcow2-linux-19cd22972fbe419235b380a94f31c826809cafec.tar.gz kernel-qcow2-linux-19cd22972fbe419235b380a94f31c826809cafec.tar.xz kernel-qcow2-linux-19cd22972fbe419235b380a94f31c826809cafec.zip |
Staging: drivers: Bool initializations should use true/false
This patch replaces bool initializations of 1/0 with true/false in order
to increase readability and respect the standards. Warning found by
coccinelle.
Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c')
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c index 3527edc39064..878086af9445 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c @@ -1371,7 +1371,7 @@ static void ieee80211_associate_complete_wq(struct work_struct *work) else if(ieee->is_silent_reset == 1) { printk("==================>silent reset associate\n"); - ieee->is_silent_reset = 0; + ieee->is_silent_reset = false; } if (ieee->data_hard_resume) @@ -2719,7 +2719,7 @@ void ieee80211_softmac_init(struct ieee80211_device *ieee) ieee->sta_edca_param[2] = 0x005E4342; ieee->sta_edca_param[3] = 0x002F3262; ieee->aggregation = true; - ieee->enable_rx_imm_BA = 1; + ieee->enable_rx_imm_BA = true; ieee->tx_pending.txb = NULL; setup_timer(&ieee->associate_timer, ieee80211_associate_abort_cb, |