]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: dgnc: remove redundant initialization for channel array
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 26 Sep 2016 00:37:51 +0000 (09:37 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 11:12:25 +0000 (13:12 +0200)
The channel array in board_t was initialized in dgnc_found_board()
with NULL. But the channel is going to initialize in dgnc_tty_init().
So the channel array doesn't need to set NULL for initailization.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c

index 01e948cabcb29a6bd76da86c879080d134defd56..b598034736c10d73262e0ca8794ee24ce4db2d0f 100644 (file)
@@ -400,9 +400,6 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
 
        brd->state              = BOARD_FOUND;
 
-       for (i = 0; i < MAXPORTS; i++)
-               brd->channels[i] = NULL;
-
        /* store which card & revision we have */
        pci_read_config_word(pdev, PCI_SUBSYSTEM_VENDOR_ID, &brd->subvendor);
        pci_read_config_word(pdev, PCI_SUBSYSTEM_ID, &brd->subdevice);