ACPI: platform: Get rid of redundant 'else'

In the snippets like the following

	if (...)
		return / goto / break / continue ...;
	else
		...

the 'else' is redundant. Get rid of it.

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:
Andy Shevchenko 2022-08-31 17:03:24 +03:00 committed by Rafael J. Wysocki
parent b90cb10531
commit f3bc9ca528

View File

@ -113,9 +113,9 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev,
INIT_LIST_HEAD(&resource_list);
count = acpi_dev_get_resources(adev, &resource_list, NULL, NULL);
if (count < 0) {
if (count < 0)
return NULL;
} else if (count > 0) {
if (count > 0) {
resources = kcalloc(count, sizeof(struct resource),
GFP_KERNEL);
if (!resources) {