platform/x86: acer-wmi: Remove void function return
authorEdson Juliano Drosdeck <edson.drosdeck@gmail.com>
Mon, 16 Oct 2023 18:29:10 +0000 (15:29 -0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 17 Oct 2023 07:14:35 +0000 (10:14 +0300)
Adhere to Linux kernel coding style.

Reported by checkpatch:

WARNING: void function return statements are not generally useful

Signed-off-by: Edson Juliano Drosdeck <edson.drosdeck@gmail.com>
Link: https://lore.kernel.org/r/20231016182910.3344-1-edson.drosdeck@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/acer-wmi.c

index 377a0becd1a18121ebc9743945033541372958d4..0e472aa9bf418280057e4d4e284095f45b68ff7b 100644 (file)
@@ -1922,7 +1922,6 @@ static void acer_rfkill_exit(void)
                rfkill_unregister(threeg_rfkill);
                rfkill_destroy(threeg_rfkill);
        }
-       return;
 }
 
 static void acer_wmi_notify(u32 value, void *context)
@@ -2517,7 +2516,6 @@ static void __exit acer_wmi_exit(void)
        platform_driver_unregister(&acer_platform_driver);
 
        pr_info("Acer Laptop WMI Extras unloaded\n");
-       return;
 }
 
 module_init(acer_wmi_init);