diff options
author | Kaixu Xia <kaixuxia@tencent.com> | 2020-11-17 12:29:12 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2020-11-20 14:06:47 +0300 |
commit | 275f6010b6994ad286a859062c03be050e8073ad (patch) | |
tree | a0605aa3ab873bdff5a1df04d4d4a0cc75b15442 /include | |
parent | 887e5a9ace74419a9797bbf665d521dd9c0bdf4b (diff) | |
download | linux-275f6010b6994ad286a859062c03be050e8073ad.tar.xz |
can: mcp251xfd: remove useless code in mcp251xfd_chip_softreset
It would directly return if the variable err equals to 0 or other errors.
Only when the err equals to -ETIMEDOUT it can reach the 'if (err)'
statement, so the 'if (err)' and last 'return -ETIMEDOUT' statements are
useless. Romove them.
Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1605605352-25298-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions