+ drivers-atm-no-need-to-return-void.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     drivers/atm: No need to return void

has been added to the -mm tree.  Its filename is

     drivers-atm-no-need-to-return-void.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: drivers/atm: No need to return void
From: Tobias Klauser <tklauser@xxxxxxxxxx>

The module_exit function has return-type void and pci_unregister_driver()
returns void anyway.

Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx>
Cc: chas williams <chas@xxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/atm/ambassador.c |    4 ++--
 drivers/atm/horizon.c    |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff -puN drivers/atm/ambassador.c~drivers-atm-no-need-to-return-void drivers/atm/ambassador.c
--- a/drivers/atm/ambassador.c~drivers-atm-no-need-to-return-void
+++ a/drivers/atm/ambassador.c
@@ -2457,8 +2457,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);
diff -puN drivers/atm/horizon.c~drivers-atm-no-need-to-return-void drivers/atm/horizon.c
--- a/drivers/atm/horizon.c~drivers-atm-no-need-to-return-void
+++ a/drivers/atm/horizon.c
@@ -2941,8 +2941,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);
_

Patches currently in -mm which might be from tklauser@xxxxxxxxxx are

drivers-atm-no-need-to-return-void.patch
sound-usb-usbaudio-handle-return-value-of-usb_register.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux