ACPI: check a return value correctly in acpi_power_get_context()
commit8a71a3726bbc22960b9a40065c8ecac158f6f847
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 18 Apr 2008 20:27:29 +0000 (18 13:27 -0700)
committerOliver Pinter <oliver.pntr@gmail.com>
Sat, 10 May 2008 15:31:08 +0000 (10 17:31 +0200)
tree53baef68a6b885597d3497fa9cc9e8114c3ffb71
parent74d4c0de24e41870a26422350833825b04945e26
ACPI: check a return value correctly in acpi_power_get_context()

We should check *resource != NULL rather than resource != NULL, which will be
always true.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
drivers/acpi/power.c