acpi_power_meter: clean up code around setup_attrs
authorKyle McMartin <kyle@mcmartin.ca>
Mon, 2 Apr 2012 18:19:04 +0000 (14:19 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 21 May 2012 02:41:49 +0000 (19:41 -0700)
commit7bb5ee0169b80d40aa7d4854c07f1c2a90efc5b8
tree4bf1bc45ca14c228515ab3dc8e25bf04e8d5b909
parent9fe789f88ae5488d8b8af1c4c962e619ed05bb2e
acpi_power_meter: clean up code around setup_attrs

We don't need to duplicate if (res) checks if we're always running
one or the other.

Signed-off-by: Kyle McMartin <kyle@redhat.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/acpi_power_meter.c