* [PATCH 01/11 V2] staging: dgnc: remove redundant initialization for channel array
@ 2016-09-23 1:25 Daeseok Youn
2016-09-23 12:15 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Daeseok Youn @ 2016-09-23 1:25 UTC (permalink / raw)
To: lidza.louina
Cc: markh, gregkh, driverdev-devel, devel, linux-kernel, kernel-janitors
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().
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
---
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(-)
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index 01e948c..b598034 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);
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 01/11 V2] staging: dgnc: remove redundant initialization for channel array
2016-09-23 1:25 [PATCH 01/11 V2] staging: dgnc: remove redundant initialization for channel array Daeseok Youn
@ 2016-09-23 12:15 ` Greg KH
2016-09-26 0:32 ` DaeSeok Youn
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2016-09-23 12:15 UTC (permalink / raw)
To: Daeseok Youn
Cc: lidza.louina, devel, driverdev-devel, kernel-janitors, linux-kernel
On Fri, Sep 23, 2016 at 10:25:02AM +0900, Daeseok Youn wrote:
> 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().
>
> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
> ---
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 01/11 V2] staging: dgnc: remove redundant initialization for channel array
2016-09-23 12:15 ` Greg KH
@ 2016-09-26 0:32 ` DaeSeok Youn
0 siblings, 0 replies; 3+ messages in thread
From: DaeSeok Youn @ 2016-09-26 0:32 UTC (permalink / raw)
To: Greg KH
Cc: Lidza Louina, devel, driverdev-devel, kernel-janitors, linux-kernel
2016-09-23 21:15 GMT+09:00 Greg KH <gregkh@linuxfoundation.org>:
> On Fri, Sep 23, 2016 at 10:25:02AM +0900, Daeseok Youn wrote:
>> 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().
>>
>> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
>> ---
>> 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.
>
> Please resend the whole series.
>
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-26 0:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-23 1:25 [PATCH 01/11 V2] staging: dgnc: remove redundant initialization for channel array Daeseok Youn
2016-09-23 12:15 ` Greg KH
2016-09-26 0:32 ` DaeSeok Youn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).