Skip to content
Commit 275f6010 authored by Kaixu Xia's avatar Kaixu Xia Committed by Marc Kleine-Budde
Browse files

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: default avatarTosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: default avatarKaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1605605352-25298-1-git-send-email-kaixuxia@tencent.com


Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 887e5a9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment