]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wilc1000: remove ununsed variable
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Mon, 22 Jun 2015 13:13:58 +0000 (13:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Jul 2015 02:25:39 +0000 (19:25 -0700)
This patch removes ununsed variable 'len'

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c

index d28c410ba249af2ee72dfe62508c7dbc4ba130d0..def72fd1236dee98249e92a7ee6bc7ed5e256ec4 100644 (file)
@@ -118,11 +118,10 @@ static void wilc_debug(uint32_t flag, char *fmt, ...)
 {
        char buf[256];
        va_list args;
-       int len;
 
        if (flag & dbgflag) {
                va_start(args, fmt);
-               len = vsprintf(buf, fmt, args);
+               vsprintf(buf, fmt, args);
                va_end(args);
 
                if (g_wlan.os_func.os_debug)