Commit d7728031 authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

staging: wfx: use boolean appropriately

The field 'uploaded' is used as a boolean, so call it a boolean.
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-5-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5eee6147
...@@ -184,7 +184,7 @@ static int wfx_tx_policy_get(struct wfx_vif *wvif, ...@@ -184,7 +184,7 @@ static int wfx_tx_policy_get(struct wfx_vif *wvif,
*/ */
entry = list_entry(cache->free.prev, struct tx_policy, link); entry = list_entry(cache->free.prev, struct tx_policy, link);
memcpy(entry->rates, wanted.rates, sizeof(entry->rates)); memcpy(entry->rates, wanted.rates, sizeof(entry->rates));
entry->uploaded = 0; entry->uploaded = false;
entry->usage_count = 0; entry->usage_count = 0;
idx = entry - cache->cache; idx = entry - cache->cache;
} }
...@@ -241,7 +241,7 @@ static int wfx_tx_policy_upload(struct wfx_vif *wvif) ...@@ -241,7 +241,7 @@ static int wfx_tx_policy_upload(struct wfx_vif *wvif)
dst->terminate = 1; dst->terminate = 1;
dst->count_init = 1; dst->count_init = 1;
memcpy(&dst->rates, src->rates, sizeof(src->rates)); memcpy(&dst->rates, src->rates, sizeof(src->rates));
src->uploaded = 1; src->uploaded = true;
arg->num_tx_rate_policies++; arg->num_tx_rate_policies++;
} }
} }
......
...@@ -41,7 +41,7 @@ struct tx_policy { ...@@ -41,7 +41,7 @@ struct tx_policy {
struct list_head link; struct list_head link;
int usage_count; int usage_count;
u8 rates[12]; u8 rates[12];
u8 uploaded; bool uploaded;
}; };
struct tx_policy_cache { struct tx_policy_cache {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment