staging: dgnc: remove redundant initialization for channel array
Subsystems (2)
PATCH RESEND v2 1/11 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 <[email protected]>
---
RESEND: send the whole series again. Because I missed some patches when the V2 patches sent.
V2: The subject line was cut off, I put it completely and update change log.
drivers/staging/dgnc/dgnc_driver.c | 3 --- 1 file changed, 3 deletions(-)
drivers/staging/dgnc/dgnc_driver.c +0 -3
@@ -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);
Signature · 1 line
1.9.1