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)
commit08054200117a95afc14c3d2ed3a38bf4e345bf78
tree8083abfbefaea2ab54ebc75a75e9731eff3d2fd2
parent763254516187015cb5b391553af35c6ed1f4bb36
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