Dan Carpenter f18ebc211e ACPI / sysfs: fix error code in get_status()
The problem with ornamental, do-nothing gotos is that they lead to
"forgot to set the error code" bugs.  We should be returning -EINVAL
here but we don't.  It leads to an uninitalized variable in
counter_show():

    drivers/acpi/sysfs.c:603 counter_show()
    error: uninitialized symbol 'status'.

Fixes: 1c8fce27e275 (ACPI: introduce drivers/acpi/sysfs.c)
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2016-05-05 15:28:58 +02:00
..
2016-03-14 14:19:52 +01:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2016-01-04 22:10:30 +01:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2016-04-02 01:17:36 +02:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2016-03-09 23:23:21 +01:00
2015-11-07 01:30:10 +01:00
2015-07-08 02:27:32 +02:00
2016-04-02 01:17:36 +02:00
2016-02-16 19:58:25 +01:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2015-09-01 03:38:43 +02:00
2015-09-01 15:52:35 +02:00
2016-02-16 19:58:25 +01:00