summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorAndy Shevchenko2013-03-20 13:14:30 +0100
committerRafael J. Wysocki2013-03-25 00:21:49 +0100
commitcf8df962aa830d05be1a8d5a9c7d2a67b2837b45 (patch)
treea3ce8c148927be8bf3360511d2cd18f464aada97 /drivers/acpi
parentACPI / LPSS: Add support for exposing LTR registers to user space (diff)
downloadkernel-qcow2-linux-cf8df962aa830d05be1a8d5a9c7d2a67b2837b45.tar.gz
kernel-qcow2-linux-cf8df962aa830d05be1a8d5a9c7d2a67b2837b45.tar.xz
kernel-qcow2-linux-cf8df962aa830d05be1a8d5a9c7d2a67b2837b45.zip
ACPI / LPSS: make code less confusing for reader
The excerpt like this: if (err) { err = 0; goto error_out; } makes a reader confused even if it's commented. Let's do necessary actions and return no error explicitly. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/acpi_lpss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
index c87db0e47d09..b1c95422ce74 100644
--- a/drivers/acpi/acpi_lpss.c
+++ b/drivers/acpi/acpi_lpss.c
@@ -150,8 +150,8 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
* Skip the device, but don't terminate the namespace
* scan.
*/
- ret = 0;
- goto err_out;
+ kfree(pdata);
+ return 0;
}
}