]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mwifiex: simplify the code around ra_list
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 26 May 2017 01:41:49 +0000 (09:41 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 1 Jun 2017 09:50:09 +0000 (12:50 +0300)
commit01926202b34b252514350a60ab20ec63ad1c5fad
tree51173f199533a9ff4f73307bdb3d87804f16d1ca
parent4f8e25458cb6efc9e4497bb5cecb3a667d4963ab
mwifiex: simplify the code around ra_list

We don't need to check if the list is empty separately
as we could use list_first_entry_or_null to cover it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/tdls.c
drivers/net/wireless/marvell/mwifiex/wmm.c