]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8712: remove assignment of 0 to a static global variable
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 23 Sep 2012 16:57:21 +0000 (12:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 16:23:31 +0000 (09:23 -0700)
fixes the following checkpatch warning:

drivers/staging/rtl8712/os_intfs.c:99: ERROR: do not initialise statics
to 0 or NULL

as statics are always initialised to 0.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/os_intfs.c

index 448f00dd68fec33cfb84c61035f224902a3dd1fa..e00f7918d261e57ad47ac2b6c219edf9b2a7a7f9 100644 (file)
@@ -96,7 +96,7 @@ static char *initmac;
 /* if wifi_test = 1, driver will disable the turbo mode and pass it to
  * firmware private.
  */
-static int wifi_test = 0;
+static int wifi_test;
 
 module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR);
 module_param(wifi_test, int, 0644);