summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorSudip Mukherjee2015-10-03 17:22:48 +0200
committerGreg Kroah-Hartman2015-10-04 10:30:14 +0200
commit482e191d61a85c87e033a650e755d3a4361a6158 (patch)
treec369bdabe317c0d6b7b9380e998c7c0201ba235e /drivers/staging/dgnc
parentstaging: dgnc: remove NULL test (diff)
downloadkernel-qcow2-linux-482e191d61a85c87e033a650e755d3a4361a6158.tar.gz
kernel-qcow2-linux-482e191d61a85c87e033a650e755d3a4361a6158.tar.xz
kernel-qcow2-linux-482e191d61a85c87e033a650e755d3a4361a6158.zip
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>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_driver.c7
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);
}