projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24bb0e
)
staging: dgnc: remove initialization of global
author
Sudip Mukherjee
<
[email protected]
>
Sat, 3 Oct 2015 15:22:48 +0000
(20:52 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sun, 4 Oct 2015 08:30:14 +0000
(09:30 +0100)
globals variable will be initialied to 0 and the global pointers will be
to NULL. No need to initialize them separately.
Signed-off-by: Sudip Mukherjee <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/dgnc/dgnc_driver.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dgnc/dgnc_driver.c
b/drivers/staging/dgnc/dgnc_driver.c
index 7546aff6500243cda1e9806c4070ec9827c528a6..7827ceb830a9b4464e8f226846c3f73ae5d2bcbc 100644
(file)
--- a/
drivers/staging/dgnc/dgnc_driver.c
+++ b/
drivers/staging/dgnc/dgnc_driver.c
@@
-708,13
+708,6
@@
static void dgnc_poll_handler(ulong dummy)
*/
static void dgnc_init_globals(void)
{
- int i = 0;
-
- dgnc_NumBoards = 0;
-
- for (i = 0; i < MAXBOARDS; i++)
- dgnc_Board[i] = NULL;
-
init_timer(&dgnc_poll_timer);
}