From: Sudip Mukherjee Date: Sat, 3 Oct 2015 15:22:48 +0000 (+0530) Subject: staging: dgnc: remove initialization of global X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=482e191d61a85c87e033a650e755d3a4361a6158;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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); }