Commit f3e13bbc authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Hans de Goede

platform/x86: serial-multi-instantiate: 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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220709211653.18938-5-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent ed7adc2b
......@@ -98,7 +98,7 @@ static int smi_spi_probe(struct platform_device *pdev, struct smi *smi,
ret = acpi_spi_count_resources(adev);
if (ret < 0)
return ret;
else if (!ret)
if (!ret)
return -ENOENT;
count = ret;
......@@ -180,7 +180,7 @@ static int smi_i2c_probe(struct platform_device *pdev, struct smi *smi,
ret = i2c_acpi_client_count(adev);
if (ret < 0)
return ret;
else if (!ret)
if (!ret)
return -ENOENT;
count = ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment