mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
can: dev: can_restart(): reverse logic to remove need for goto
[ Upstream commit8f3ec204d3] Reverse the logic in the if statement and eliminate the need for a goto to simplify code readability. Link: https://lore.kernel.org/all/20231005-can-dev-fix-can-restart-v2-3-91b5c1fd922c@pengutronix.de Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Stable-dep-of:c1f3f9797c("can: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
128a60aed7
commit
0a26f3a3ed
1 changed files with 4 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue