staging: dgnc: remove redundant initialization for channel array
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>
This commit is contained in:
parent
e955576541
commit
cc1c1c141c
drivers/staging/dgnc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue