Skip to content

Commit f3bc9ca

Browse files
andy-shevrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent b90cb10 commit f3bc9ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/acpi_platform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev,
113113

114114
INIT_LIST_HEAD(&resource_list);
115115
count = acpi_dev_get_resources(adev, &resource_list, NULL, NULL);
116-
if (count < 0) {
116+
if (count < 0)
117117
return NULL;
118-
} else if (count > 0) {
118+
if (count > 0) {
119119
resources = kcalloc(count, sizeof(struct resource),
120120
GFP_KERNEL);
121121
if (!resources) {

0 commit comments

Comments
 (0)