mirror of https://gitee.com/openkylin/linux.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 <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e24bb0ed81
commit
482e191d61
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue