Re: [PATCH] staging: dgnc: Remove useless and deadly judgment

2016-03-11 Thread Greg Kroah-Hartman
On Mon, Feb 29, 2016 at 02:41:34PM +0800, Navy Cheng wrote: > pci_unregister_driver() should be used once dgnc module exit. It has > nothing to do with dgnc_NumBoards. Remove the judgment of dgnc_NumBoards to > avoid pci_unregister_driver() is not used when dgnc_NumBoards is 0. > > Signed-off-by:

Re: [PATCH] staging: dgnc: Remove useless and deadly judgment

2016-02-28 Thread Valdis . Kletnieks
On Mon, 29 Feb 2016 14:41:34 +0800, Navy Cheng said: > pci_unregister_driver() should be used once dgnc module exit. It has > nothing to do with dgnc_NumBoards. Remove the judgment of dgnc_NumBoards to > avoid pci_unregister_driver() is not used when dgnc_NumBoards is 0. > - if

[PATCH] staging: dgnc: Remove useless and deadly judgment

2016-02-28 Thread Navy Cheng
pci_unregister_driver() should be used once dgnc module exit. It has nothing to do with dgnc_NumBoards. Remove the judgment of dgnc_NumBoards to avoid pci_unregister_driver() is not used when dgnc_NumBoards is 0. Signed-off-by: Navy Cheng --- drivers/staging/dgnc/dgnc_driver.c |