mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] [linux-next] [staging] rtl8821ae: fixed defined-not-used warning
@ 2014-04-30 12:15 Jan Moskyto Matejka
  2014-04-30 12:39 ` Paul Bolle
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Moskyto Matejka @ 2014-04-30 12:15 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Mark Einon, devel, linux-kernel; +Cc: Jan Moskyto Matejka

The function  halbtc8192e2ant_iswifi_status_changed  is called only
at line 4158 which is #if'd in the same way as I'm now #if-ing the function.

Signed-off-by: Jan Moskyto Matejka <mq@suse.cz>
---
 drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c b/drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c
index 81706f4..7af412d 100644
--- a/drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c
+++ b/drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c
@@ -503,6 +503,7 @@ static void halbtc8192e2ant_querybt_info(struct btc_coexist *btcoexist)
 	btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter);
 }
 
+#if (BT_AUTO_REPORT_ONLY_8192E_2ANT != 0)
 static bool halbtc8192e2ant_iswifi_status_changed(struct btc_coexist *btcoexist)
 {
 	static bool pre_wifi_busy;
@@ -534,6 +535,7 @@ static bool halbtc8192e2ant_iswifi_status_changed(struct btc_coexist *btcoexist)
 
 	return false;
 }
+#endif
 
 static void halbtc8192e2ant_update_btlink_info(struct btc_coexist *btcoexist)
 {
-- 
1.8.4.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-30 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30 12:15 [PATCH] [linux-next] [staging] rtl8821ae: fixed defined-not-used warning Jan Moskyto Matejka
2014-04-30 12:39 ` Paul Bolle
2014-04-30 12:51   ` Jan Moskyto Matejka
2014-04-30 13:22     ` [PATCH v2] " Jan Moskyto Matejka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®