]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00usb: remove unnecessary rx flag checks
authorSoeren Moch <smoch@web.de>
Mon, 1 Jul 2019 10:53:14 +0000 (12:53 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jul 2019 11:42:40 +0000 (14:42 +0300)
commit39f0266377959085ae0f4a06b68e8731aacb6448
tree61e10d4578888da40cf6207b5731cd1d6cc35325
parentea22a843880293176262e4ef05f204c704826f59
rt2x00usb: remove unnecessary rx flag checks

In contrast to the TX path, there is no need to separately read the transfer
status from the device after receiving RX data. Consequently, there is no
real STATUS_PENDING RX processing queue entry state.
Remove the unnecessary ENTRY_DATA_STATUS_PENDING flag checks from the RX path.
Also remove the misleading comment about reading RX status from device.

Suggested-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Soeren Moch <smoch@web.de>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00usb.c