]> 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)
commit3b902fa811cf6bf7f9ad0ffb77d0a133e0b3bd61
tree61e10d4578888da40cf6207b5731cd1d6cc35325
parent231e83fdcd03bce4f5c71fc318cbdbe65bd2b80b
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