diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-03-27 19:20:16 +0200 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-03-29 10:05:05 +0200 |
commit | 4e99c98e3071bd7fd4d7f20440f1a5c3bf533149 (patch) | |
tree | ed56fbeb01367568d7255e3106897402d2ce8710 /drivers/thunderbolt/acpi.c | |
parent | thunderbolt: Refactor DROM reading (diff) | |
download | linux-4e99c98e3071bd7fd4d7f20440f1a5c3bf533149.tar.xz linux-4e99c98e3071bd7fd4d7f20440f1a5c3bf533149.zip |
thunderbolt: 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: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/acpi.c')
-rw-r--r-- | drivers/thunderbolt/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/acpi.c b/drivers/thunderbolt/acpi.c index 628225deb8fe..3514bf65b7a4 100644 --- a/drivers/thunderbolt/acpi.c +++ b/drivers/thunderbolt/acpi.c @@ -341,7 +341,7 @@ static struct acpi_device *tb_acpi_find_companion(struct device *dev) */ if (tb_is_switch(dev)) return tb_acpi_switch_find_companion(tb_to_switch(dev)); - else if (tb_is_usb4_port_device(dev)) + if (tb_is_usb4_port_device(dev)) return acpi_find_child_by_adr(ACPI_COMPANION(dev->parent), tb_to_usb4_port_device(dev)->port->port); return NULL; |