From: Rafael J. Wysocki Date: Wed, 28 Sep 2011 19:44:36 +0000 (+0200) Subject: PCI / PM: Remove unnecessary error variable from acpi_dev_run_wake() X-Git-Tag: v3.2-rc1~128^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78d090b0be3f072a3c95022771c35183af961aaa;p=pandora-kernel.git PCI / PM: Remove unnecessary error variable from acpi_dev_run_wake() The result returned by acpi_dev_run_wake() is always either -EINVAL or -ENODEV, while obviously it should return 0 on success. The problem is that the leftover error variable, that's not really used in the function, is initialized with -ENODEV and then returned without modification. To fix this issue remove the error variable from acpi_dev_run_wake() and make the function return 0 on success as appropriate. Signed-off-by: Rafael J. Wysocki Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed