diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-03-27 20:20:16 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-03-29 11:05:05 +0300 |
commit | 4e99c98e3071bd7fd4d7f20440f1a5c3bf533149 (patch) | |
tree | ed56fbeb01367568d7255e3106897402d2ce8710 /drivers/thunderbolt/switch.c | |
parent | ebde5ba27c640e08e92c83fe30be0d9fa224eea9 (diff) | |
download | lwn-4e99c98e3071bd7fd4d7f20440f1a5c3bf533149.tar.gz lwn-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/switch.c')
-rw-r--r-- | drivers/thunderbolt/switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c index 3370e18ba05f..0a34880a6636 100644 --- a/drivers/thunderbolt/switch.c +++ b/drivers/thunderbolt/switch.c @@ -271,9 +271,9 @@ static int nvm_authenticate(struct tb_switch *sw, bool auth_only) } sw->nvm->authenticating = true; return usb4_switch_nvm_authenticate(sw); - } else if (auth_only) { - return -EOPNOTSUPP; } + if (auth_only) + return -EOPNOTSUPP; sw->nvm->authenticating = true; if (!tb_route(sw)) { |