2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00

staging: wfx: replace 1 by true

Replace 1 by true when it is stored in a boolean variable.
Recommended by coccinelle tool.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/20191105010352.222479-3-jbi.octave@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jules Irenge 2019-11-05 01:03:52 +00:00 committed by Greg Kroah-Hartman
parent 2c1facbc43
commit 168c7d7642
2 changed files with 2 additions and 2 deletions

View File

@ -550,7 +550,7 @@ struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)
spin_unlock_bh(&wvif->ps_state_lock);
if (vif_more) {
more = 1;
more = true;
tx_allowed_mask = vif_tx_allowed_mask;
queue = vif_queue;
ret = 0;

View File

@ -291,7 +291,7 @@ u64 wfx_prepare_multicast(struct ieee80211_hw *hw, struct netdev_hw_addr_list *m
ether_addr_copy(wvif->mcast_filter.address_list[i], ha->addr);
i++;
}
wvif->mcast_filter.enable = 1;
wvif->mcast_filter.enable = true;
wvif->mcast_filter.num_addresses = count;
}