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>
This commit is contained in:
parent
2e0f8822d1
commit
cf8df962aa
|
@ -150,8 +150,8 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
|
||||||
* Skip the device, but don't terminate the namespace
|
* Skip the device, but don't terminate the namespace
|
||||||
* scan.
|
* scan.
|
||||||
*/
|
*/
|
||||||
ret = 0;
|
kfree(pdata);
|
||||||
goto err_out;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue