]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: Add check for get_btc_status callback
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 23 Oct 2014 16:27:09 +0000 (11:27 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 23 Oct 2014 18:02:07 +0000 (14:02 -0400)
commitfb1b3fbef393e9bc20017feed088f304e9bb18ce
tree8083abfbefaea2ab54ebc75a75e9731eff3d2fd2
parent306b9248ebde82c0a93c23b52d86740b6a1f5cd0
rtlwifi: Add check for get_btc_status callback

Drivers that do not use the get_btc_status() callback may not define a
dummy routine. The caller needs to check before making the call.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
Cc: Mike Galbraith <umgwanakikbuti@gmail.com>
Cc: Thadeu Cascardo <cascardo@cascardo.eti.br>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c