mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
sysfs_remove_bin_file: no return value, dump_stack on error
Make sysfs_remove_bin_file() void. If it detects an error, printk the file name and call dump_stack(). sysfs_hash_and_remove() now returns an error code indicating its success or failure so that sysfs_remove_bin_file() can know success/failure. Convert the only driver that checked the return value of sysfs_remove_bin_file(). Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
10188012da
commit
995982ca79
5 changed files with 19 additions and 13 deletions
|
|
@ -487,9 +487,7 @@ static void __exit ibm_acpiphp_exit(void)
|
|||
if (ACPI_FAILURE(status))
|
||||
err("%s: Notification handler removal failed\n", __FUNCTION__);
|
||||
/* remove the /sys entries */
|
||||
if (sysfs_remove_bin_file(sysdir, &ibm_apci_table_attr))
|
||||
err("%s: removal of sysfs file apci_table failed\n",
|
||||
__FUNCTION__);
|
||||
sysfs_remove_bin_file(sysdir, &ibm_apci_table_attr);
|
||||
}
|
||||
|
||||
module_init(ibm_acpiphp_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue