diff options
author | 2020-01-15 13:55:35 +0000 | |
---|---|---|
committer | 2020-01-16 20:59:53 +0100 | |
commit | 2f5fd8b07745838e590b61d5b136be8b9f94cc4c (patch) | |
tree | 64522d1e07d340d1eb08fc824f8b2d18525bed05 /tools/perf/scripts/python | |
parent | staging: wfx: simplify hif_handle_tx_data() (diff) | |
download | wireguard-linux-2f5fd8b07745838e590b61d5b136be8b9f94cc4c.tar.xz wireguard-linux-2f5fd8b07745838e590b61d5b136be8b9f94cc4c.zip |
staging: wfx: simplify wfx_tx_queue_get_num_queued()
wfx_tx_queue_get_num_queued() can take advantage of BIT() instead of
maintaining one variable for a counter and another for a mask.
In add, wfx_tx_queue_get_num_queued() has no real reason to return a
size_t instead of an int.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200115135338.14374-64-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions