]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: cxt1e1: remove set a value to static variable
authorDaeseok Youn <daeseok.youn@gmail.com>
Fri, 9 May 2014 10:10:07 +0000 (19:10 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 11:38:43 +0000 (20:38 +0900)
cleanup checkpatch.pl error:
 ERROR: do not initialise statics to 0 or NULL

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/cxt1e1/musycc.c

index c086c60338e19718a15466a2cefb2516251fc7f5..a87f80237f47c58d61853a4683e8f801f1be5c79 100644 (file)
@@ -1,5 +1,5 @@
-static unsigned int max_intcnt = 0;
-static unsigned int max_bh = 0;
+static unsigned int max_intcnt;
+static unsigned int max_bh;
 
 /*-----------------------------------------------------------------------------
  * musycc.c -
@@ -453,7 +453,7 @@ musycc_chan_restart(mch_t *ch)
 void
 rld_put_led(mpi_t *pi, u_int32_t ledval)
 {
-       static u_int32_t led = 0;
+       static u_int32_t led;
 
        if (ledval == 0)
                led = 0;