]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix misnomers in mwifiex_free_lock_list()
authorBrian Norris <briannorris@chromium.org>
Tue, 25 Jul 2017 01:13:25 +0000 (18:13 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 14:47:49 +0000 (17:47 +0300)
commit6f5a3cc65c4b0f768b96d6dbddb79c9d310e3c3c
tree14cae559775d79526db10c9798316ec5010cac9d
parentc8b0e5faff53d34850702592e818472d868f5ae9
mwifiex: fix misnomers in mwifiex_free_lock_list()

Despite the name (and meticulous comments), this function frees no
memory and does not touch any locks. All it does is "delete" the list
heads -- which just means they'll be dangling, and we'll need to re-init
them if we use them again.

It seems like this code would work OK as a sort of canary for using the
list after we've torn everything down, so it's fine to keep the code;
let's just get the name and comments to match what's actually happening.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/init.c