staging: wlags49_h2: wl_enc: fixes incorrect use of return
authorJohan Meiring <johanmeiring@gmail.com>
Fri, 30 Nov 2012 16:58:35 +0000 (18:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 19:03:32 +0000 (11:03 -0800)
This commit removes parentheses that were used as part of return
statements, seeing as how return is not a function.

Signed-off-by: Johan Meiring <johanmeiring@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlags49_h2/wl_enc.c

index 2cf3a11..51293d9 100644 (file)
@@ -155,7 +155,7 @@ int wl_wep_code(char *szCrypt, char *szDest, void *Data, int nLen)
        }
        }
 
-       return(strlen(szDest)) ;
+       return strlen(szDest);
 
 }
 /*============================================================================*/
@@ -225,7 +225,7 @@ int wl_wep_decode(char *szCrypt, void *Dest, char *szData)
 
        }
 
-       return(i) ;
+       return i;
 
 }
 /*============================================================================*/