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/ctl.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/ctl.c')
-rw-r--r-- | drivers/thunderbolt/ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/ctl.c b/drivers/thunderbolt/ctl.c index 6e7d28e8d81a..3a213322ec7a 100644 --- a/drivers/thunderbolt/ctl.c +++ b/drivers/thunderbolt/ctl.c @@ -1033,7 +1033,7 @@ static int tb_cfg_get_error(struct tb_ctl *ctl, enum tb_cfg_space space, if (res->tb_error == TB_CFG_ERROR_LOCK) return -EACCES; - else if (res->tb_error == TB_CFG_ERROR_PORT_NOT_CONNECTED) + if (res->tb_error == TB_CFG_ERROR_PORT_NOT_CONNECTED) return -ENOTCONN; return -EIO; |