diff options
| author | Kaixu Xia <[email protected]> | 2020-11-17 09:29:12 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2020-11-20 11:06:47 +0000 |
| commit | 275f6010b6994ad286a859062c03be050e8073ad (patch) | |
| tree | a0605aa3ab873bdff5a1df04d4d4a0cc75b15442 /net/lapb/lapb_iface.c | |
| parent | can: kvaser_usb: Add new Kvaser hydra devices (diff) | |
| download | kernel-275f6010b6994ad286a859062c03be050e8073ad.tar.gz kernel-275f6010b6994ad286a859062c03be050e8073ad.zip | |
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 <[email protected]>
Signed-off-by: Kaixu Xia <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions
