lkml.org 
[lkml]   [2014]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] [linux-next] [staging] rtl8821ae: fixed defined-not-used warning
Date
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


\
 
 \ /
  Last update: 2014-04-30 14:41    [W:0.047 / U:1.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site