summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Clement <gclement@baobob.org>2014-07-22 22:08:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-22 15:03:13 -0700
commit8e3bec324e59aeedbef749ba2a3a2c00db1c75cf (patch)
tree8d944b8f448ac685f178e257e67483a5b46b6e93
parent2b3f41c723752b8ee6383256246b090f5b9f212c (diff)
downloadop-kernel-dev-8e3bec324e59aeedbef749ba2a3a2c00db1c75cf.zip
op-kernel-dev-8e3bec324e59aeedbef749ba2a3a2c00db1c75cf.tar.gz
staging: vt6655: Fix unused function warning
Sparse reports that MimeThread is not used. Actually, it can be used if THREAD is defined. By enclosing the MimeThread function into the same #ifdef as the caller of MimeThread, this fixes the sparse warnings. Signed-off-by: Guillaume Clement <gclement@baobob.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6655/device_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index 52f10ca..5eeb19e 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -98,7 +98,9 @@ MODULE_AUTHOR("VIA Networking Technologies, Inc., <lyndonchen@vntek.com.tw>");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver");
+#ifdef THREAD
static int mlme_kill;
+#endif
#define DEVICE_PARAM(N, D)
@@ -1612,7 +1614,8 @@ void InitRxManagementQueue(PSDevice pDevice)
//PLICE_DEBUG<-
//PLICE_DEBUG ->
-int MlmeThread(
+#ifdef THREAD
+static int MlmeThread(
void *Context)
{
PSDevice pDevice = (PSDevice) Context;
@@ -1635,6 +1638,7 @@ int MlmeThread(
return 0;
}
+#endif
static int device_open(struct net_device *dev) {
PSDevice pDevice = (PSDevice)netdev_priv(dev);
OpenPOWER on IntegriCloud