]> 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)
commitbab8f6764f242c4fcc8ba639b0e7db03be1f856b
tree8083abfbefaea2ab54ebc75a75e9731eff3d2fd2
parent9f326d38a001a167e36d1ebf447fcae5bc579d29
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