Skip to contentSkip to conversation

staging: cxt1e1: remove set a value to static variable

PATCH In review Daeseok Youn 1 participant 1 message May 9, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 staging: cxt1e1: remove set a value to static variable

cleanup checkpatch.pl error:
ERROR: do not initialise statics to 0 or NULL

---
 drivers/staging/cxt1e1/musycc.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/cxt1e1/musycc.c +3 -3
index c086c60..a87f802 100644
@@ -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;
Signature · 1 line
1.7.1