Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: wfx: change 1 to bool

policies[i].uploaded is a bool. 1 is assigned to it. Change it to bool.

Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
Link: https://lore.kernel.org/r/20200310142509.25632-3-kgupta@es.iitr.ac.in
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Kaaira Gupta and committed by
Greg Kroah-Hartman
c67dc09f 98c386c2

+1 -1
+1 -1
drivers/staging/wfx/data_tx.c
··· 227 227 memzcmp(policies[i].rates, sizeof(policies[i].rates))) 228 228 break; 229 229 if (i < HIF_MIB_NUM_TX_RATE_RETRY_POLICIES) { 230 - policies[i].uploaded = 1; 230 + policies[i].uploaded = true; 231 231 memcpy(tmp_rates, policies[i].rates, sizeof(tmp_rates)); 232 232 spin_unlock_bh(&wvif->tx_policy_cache.lock); 233 233 hif_set_tx_rate_retry_policy(wvif, i, tmp_rates);