Rusty Russell 5d7e438629 acpi: Replace weird use of PTR_RET.
This functions is really weird.  It sets rc to -ENOMEM, then overrides
it.  It was converted to PTR_RET in a1458187 when it should have
simply been rewritten.

This version makes it more explicit, with a single IS_ERR() test.

Cc: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-07-15 11:25:02 +09:30
..
2013-06-28 12:59:02 +02:00
2013-07-15 11:25:02 +09:30
2013-06-19 23:34:58 +02:00
2013-06-28 13:00:38 +02:00
2013-06-28 13:00:38 +02:00
2013-06-28 13:00:38 +02:00
2013-06-29 15:03:44 +02:00