diff options
author | Jeff Garzik <jgarzik@redhat.com> | 2007-11-18 00:32:31 +0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-11-18 17:24:01 -0500 |
commit | 037cbc63fd83162a8ee0c69680207ce4609adbea (patch) | |
tree | 8a059dc10281006bfd18abb2cc6aa78eed6e53d6 /lib | |
parent | 4c41d3ad6544f1c9aec37c441af04f5d0ad3a731 (diff) | |
download | linux-037cbc63fd83162a8ee0c69680207ce4609adbea.tar.gz linux-037cbc63fd83162a8ee0c69680207ce4609adbea.tar.bz2 linux-037cbc63fd83162a8ee0c69680207ce4609adbea.zip |
ACPI: SBS: Fix retval warning
drivers/acpi/sbs.c: In function acpi_battery_add:
drivers/acpi/sbs.c:811: warning: ignoring return value of device_create_file,
declared with attribute warn_unused_result
Additional cleanups:
* use struct acpi_battery in acpi_battery_remove() to clean up function
calls, just like acpi_battery_add() already does.
* put braces around unregister call, as it depends on dev being not NULL.
* remove unneeded braces
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions