wmi: parse_wdg() should return kernel error codes
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Aug 2013 09:02:30 +0000 (12:02 +0300)
committerMatthew Garrett <matthew.garrett@nebula.com>
Thu, 5 Sep 2013 12:52:06 +0000 (08:52 -0400)
commit0a018a68d3bfbd6288f3b646edb0dd0720209790
tree083659b980d4db0e5071cb86f54f0c7a15b2e43e
parent5b5c2b3c9b0585350d2da62bc4b990d9bf836d94
wmi: parse_wdg() should return kernel error codes

The current code returns a mix of acpi_status and kernel error codes.
It should just return kernel error codes.  There are already error paths
in this function which return -ENOMEM and that's what the caller
expects.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/wmi.c