From: Rusty Russell Date: Mon, 15 Jul 2013 01:52:32 +0000 (+0930) Subject: acpi: Replace weird use of PTR_RET. X-Git-Tag: v3.12-rc1~146^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d7e438629413586ab78779751caa6e713c2234c;p=pandora-kernel.git 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 Signed-off-by: Rusty Russell Acked-by: Rafael J. Wysocki --- Reading git-diff-tree failed