summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Dulov <d.dulov@aladdin.ru>2024-02-11 18:05:35 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2024-02-12 19:25:42 +0300
commit383de5664c87abe097d6369d18305c3a6e559bb2 (patch)
treee0b2143bb20b5a76ee6078adc39c852c1587f4fc
parent85216f56bde74ec365da3fdff1929505538ce894 (diff)
downloadlinux-383de5664c87abe097d6369d18305c3a6e559bb2.tar.xz
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>
-rw-r--r--drivers/net/can/softing/softing_fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/softing/softing_fw.c b/drivers/net/can/softing/softing_fw.c
index 32286f861a19..721df91cdbfb 100644
--- a/drivers/net/can/softing/softing_fw.c
+++ b/drivers/net/can/softing/softing_fw.c
@@ -436,7 +436,7 @@ int softing_startstop(struct net_device *dev, int up)
return ret;
bus_bitmask_start = 0;
- if (dev && up)
+ if (up)
/* prepare to start this bus as well */
bus_bitmask_start |= (1 << priv->index);
/* bring netdevs down */