* [PATCH 5/5] staging: cxt1e1: remove set a value to static variable
@ 2014-05-09 10:10 Daeseok Youn
0 siblings, 0 replies; only message in thread
From: Daeseok Youn @ 2014-05-09 10:10 UTC (permalink / raw)
To: gregkh
Cc: daeseok.youn, himangi774, sachin.kamat, fempsci, nandu.hgowda,
devel, linux-kernel, dan.carpenter
cleanup checkpatch.pl error:
ERROR: do not initialise statics to 0 or NULL
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
---
drivers/staging/cxt1e1/musycc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/cxt1e1/musycc.c b/drivers/staging/cxt1e1/musycc.c
index c086c60..a87f802 100644
--- a/drivers/staging/cxt1e1/musycc.c
+++ b/drivers/staging/cxt1e1/musycc.c
@@ -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;
--
1.7.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-09 10:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-09 10:10 [PATCH 5/5] staging: cxt1e1: remove set a value to static variable Daeseok Youn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®