Skip to content
Commit a815ab8b authored by Li Zefan's avatar Li Zefan Committed by Len Brown
Browse files

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: default avatarLi Zefan <lizf@cn.fujitsu.com>
Acked-by: default avatarZhao Yakui <yakui.zhao@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 2a241d77
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment