Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

can: softing: remove redundant NULL check

In this case dev cannot be NULL, so remove redundant check.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 03fd3cf5a179 ("can: add driver for Softing card")
Signed-off-by: Daniil Dulov <d.dulov@aladdin.ru>
Link: https://lore.kernel.org/all/20240211150535.3529-1-d.dulov@aladdin.ru
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Daniil Dulov and committed by
Marc Kleine-Budde
383de566 85216f56

+1 -1
+1 -1
drivers/net/can/softing/softing_fw.c
··· 436 436 return ret; 437 437 438 438 bus_bitmask_start = 0; 439 - if (dev && up) 439 + if (up) 440 440 /* prepare to start this bus as well */ 441 441 bus_bitmask_start |= (1 << priv->index); 442 442 /* bring netdevs down */