]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix incorrect usage of CONFIG_RT2X00_LIB_USB
authorVishal Thanki <vishalthanki@gmail.com>
Wed, 16 Nov 2016 16:01:54 +0000 (17:01 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 23 Nov 2016 15:34:05 +0000 (17:34 +0200)
commitfbb46a61e31f7f37e6a2de4fbd65d59cf682ff8c
tree156b999879c66990441e697a391d6a40e0b0c85d
parent5b656d99535df3deb4df01187e12ea8c11c5d5d3
rt2x00: Fix incorrect usage of CONFIG_RT2X00_LIB_USB

In device removal routine, usage of "#ifdef CONFIG_RT2X00_LIB_USB"
will not cover the case when it is configured as module. This will
omit the entire if-block which does cleanup of URBs and cancellation
of pending work. Changing the #ifdef to #if IS_ENABLED() to fix it.

Signed-off-by: Vishal Thanki <vishalthanki@gmail.com>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c