[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1398860143-2676-1-git-send-email-mq@suse.cz>
Date: Wed, 30 Apr 2014 14:15:43 +0200
From: Jan Moskyto Matejka <mq@...e.cz>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Mark Einon <mark@...on.net>, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Cc: Jan Moskyto Matejka <mq@...e.cz>
Subject: [PATCH] [linux-next] [staging] rtl8821ae: fixed defined-not-used warning
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@...e.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists