diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2013-07-15 03:52:32 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-07-15 03:55:02 +0200 |
commit | 5d7e438629413586ab78779751caa6e713c2234c (patch) | |
tree | 6342df34867bb71718fc242dc19adc3ced0360ad /drivers/firewire/ohci.h | |
parent | s390: Replace weird use of PTR_RET. (diff) | |
download | linux-5d7e438629413586ab78779751caa6e713c2234c.tar.xz linux-5d7e438629413586ab78779751caa6e713c2234c.zip |
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>
Diffstat (limited to 'drivers/firewire/ohci.h')
0 files changed, 0 insertions, 0 deletions