Skip to contentSkip to conversation

ACPI: change init_acpi_device_notify() to return void.

PATCH New Rami Rosen 1 participant 1 message Sep 10, 2015 ACPI

lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

PATCH 1/1 ACPI: change init_acpi_device_notify() to return void.

This patch changes the type of the return value of the init_acpi_device_notify() method to be void, as this method never fails and its return value is never used.

---
 drivers/acpi/glue.c     | 5 ++---
 drivers/acpi/internal.h | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)
drivers/acpi/glue.c +2 -3
index b9657af..1470ae4 100644
@@ -351,13 +351,12 @@ static int acpi_platform_notify_remove(struct device *dev)
 	return 0;
 }
 
-int __init init_acpi_device_notify(void)
+void __init init_acpi_device_notify(void)
 {
 	if (platform_notify || platform_notify_remove) {
 		printk(KERN_ERR PREFIX "Can't use platform_notify\n");
-		return 0;
+		return;
 	}
 	platform_notify = acpi_platform_notify;
 	platform_notify_remove = acpi_platform_notify_remove;
-	return 0;
 }
drivers/acpi/internal.h +1 -1
index 9e42621..e72c6a6 100644
@@ -21,7 +21,7 @@
 #define PREFIX "ACPI: "
 
 acpi_status acpi_os_initialize1(void);
-int init_acpi_device_notify(void);
+void init_acpi_device_notify(void);
 int acpi_scan_init(void);
 void acpi_pci_root_init(void);
 void acpi_pci_link_init(void);
Signature · 1 line
2.4.3