aboutsummaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/acpi.c
diff options
context:
space:
mode:
authorGravatar Andy Shevchenko <andriy.shevchenko@linux.intel.com> 2023-03-27 20:20:16 +0300
committerGravatar Mika Westerberg <mika.westerberg@linux.intel.com> 2023-03-29 11:05:05 +0300
commit4e99c98e3071bd7fd4d7f20440f1a5c3bf533149 (patch)
treeed56fbeb01367568d7255e3106897402d2ce8710 /drivers/thunderbolt/acpi.c
parentthunderbolt: Refactor DROM reading (diff)
downloadlinux-4e99c98e3071bd7fd4d7f20440f1a5c3bf533149.tar.gz
linux-4e99c98e3071bd7fd4d7f20440f1a5c3bf533149.tar.bz2
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.c2
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;