diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2016-09-26 09:37:51 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-27 13:12:25 +0200 |
commit | cc1c1c141cc6747f0051cccd377e47cd2bda9b3e (patch) | |
tree | c175166de02ae5bf6726b0356623d91fd2ab6f6a /drivers/staging/dgnc | |
parent | e95557654167bbf8005a38957f4cf69550db5d35 (diff) | |
download | talos-obmc-linux-cc1c1c141cc6747f0051cccd377e47cd2bda9b3e.tar.gz talos-obmc-linux-cc1c1c141cc6747f0051cccd377e47cd2bda9b3e.zip |
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>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r-- | drivers/staging/dgnc/dgnc_driver.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 01e948cabcb2..b598034736c1 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -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); |