can: softing: remove redundant NULL check
authorDaniil Dulov <d.dulov@aladdin.ru>
Sun, 11 Feb 2024 15:05:35 +0000 (07:05 -0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 12 Feb 2024 16:25:42 +0000 (17:25 +0100)
commit383de5664c87abe097d6369d18305c3a6e559bb2
treee0b2143bb20b5a76ee6078adc39c852c1587f4fc
parent85216f56bde74ec365da3fdff1929505538ce894
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>
drivers/net/can/softing/softing_fw.c