[ATM]: No need to return void
The module_exit function has return-type void and pci_unregister_driver() returns void anyway. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
97f80bc66f
commit
b45eccdb51
2 changed files with 4 additions and 4 deletions
|
@ -2452,8 +2452,8 @@ static int __init amb_module_init (void)
|
|||
static void __exit amb_module_exit (void)
|
||||
{
|
||||
PRINTD (DBG_FLOW|DBG_INIT, "cleanup_module");
|
||||
|
||||
return pci_unregister_driver(&amb_driver);
|
||||
|
||||
pci_unregister_driver(&amb_driver);
|
||||
}
|
||||
|
||||
module_init(amb_module_init);
|
||||
|
|
|
@ -2932,8 +2932,8 @@ static int __init hrz_module_init (void) {
|
|||
|
||||
static void __exit hrz_module_exit (void) {
|
||||
PRINTD (DBG_FLOW, "cleanup_module");
|
||||
|
||||
return pci_unregister_driver(&hrz_driver);
|
||||
|
||||
pci_unregister_driver(&hrz_driver);
|
||||
}
|
||||
|
||||
module_init(hrz_module_init);
|
||||
|
|
Loading…
Reference in a new issue