diff options
author | Yan-Hsuan Chuang <yhchuang@realtek.com> | 2019-10-25 12:33:43 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-10-31 11:03:49 +0300 |
commit | ff0dfe5b0377c075986e8ac1c1516f5fbdb15b15 (patch) | |
tree | 1ccf119cbcd0b1240e5de7785a9daaa158dd4105 /drivers/acpi | |
parent | 0b8db87da54178717d302ca5dc09285ad4922abc (diff) | |
download | linux-ff0dfe5b0377c075986e8ac1c1516f5fbdb15b15.tar.xz |
rtw88: rearrange if..else statements for rx rate indexes
Driver just memset() rx_status to 0 before assigning rate indexes.
And driver could never hit the 'else' because the driver checks
if 'pkt_stat->rate >= DESC_RATEMCS0', so the 'else' statement can
be removed.
Also rearrange the if..else statements because DESC_RATEMCS0 is
actually larger than DESC_RATE1M ~ DESC_RATE54M, move the check
of 'pkt_stat->rate >= DESC_RATEMCS0' to the last to keep an
increasing order.
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions