Commit 8e3bec32 authored by Guillaume Clement's avatar Guillaume Clement Committed by Greg Kroah-Hartman

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
Signed-off-by: default avatarGuillaume Clement <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 2b3f41c7
......@@ -98,7 +98,9 @@ MODULE_AUTHOR("VIA Networking Technologies, Inc., <>");
MODULE_DESCRIPTION("VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver");
#ifdef THREAD
static int mlme_kill;
#define DEVICE_PARAM(N, D)
......@@ -1612,7 +1614,8 @@ void InitRxManagementQueue(PSDevice pDevice)
int MlmeThread(
#ifdef THREAD
static int MlmeThread(
void *Context)
PSDevice pDevice = (PSDevice) Context;
......@@ -1635,6 +1638,7 @@ int MlmeThread(
return 0;
static int device_open(struct net_device *dev) {
PSDevice pDevice = (PSDevice)netdev_priv(dev);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment