diff options
| author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-10-03 18:22:48 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 11:30:14 +0300 |
| commit | 482e191d61a85c87e033a650e755d3a4361a6158 (patch) | |
| tree | c369bdabe317c0d6b7b9380e998c7c0201ba235e | |
| parent | e24bb0ed81795731c8cca4d3ecbac04862fbf128 (diff) | |
| download | linux-482e191d61a85c87e033a650e755d3a4361a6158.tar.xz | |
staging: dgnc: remove initialization of global
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 <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/dgnc/dgnc_driver.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 7546aff65002..7827ceb830a9 100644 --- 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); } |
