staging: dgnc: remove initialization of global
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 3 Oct 2015 15:22:48 +0000 (20:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
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 <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c

index 7546aff6500243cda1e9806c4070ec9827c528a6..7827ceb830a9b4464e8f226846c3f73ae5d2bcbc 100644 (file)
@@ -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);
 }