Skip to contentSkip to conversation

staging: dgnc: remove redundant initialization for channel array

PATCH Superseded Daeseok Youn 2 participants 3 messages Sep 23, 2016 – Sep 26, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 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() again. So the channel array doesn't need to set NULL
for initailization in dgnc_found_board().

---
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
index 01e948c..b598034 100644
@@ -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
maintainer
#1 lore raw
Quoted 9 lines · Daeseok Youn

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() again. So the channel array doesn't need to set NULL
for initailization in dgnc_found_board().

---
V2: The subject line was cut off, I put it completely and update change log.

I only got 6 patches of an 11 patch series here, what happened?

Please resend the whole series.

thanks,

greg k-h

#2 lore raw

2016-09-23 21:15 GMT+09:00 Greg KH <[email protected]>:

Quoted 6 lines · Daeseok Youn
Quoted 5 lines

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() again. So the channel array doesn't need to set NULL
for initailization in dgnc_found_board().

Quoted 6 lines
Quoted 4 lines

---
V2: The subject line was cut off, I put it completely and update change log.

I only got 6 patches of an 11 patch series here, what happened?

I sent only updated 6 patches of series, I will resend 11 patches again.

Thanks.
Regards,
Daeseok Youn.

Quoted 6 lines

Please resend the whole series.

thanks,

greg k-h