projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85216f5
)
can: softing: remove redundant NULL check
author
Daniil Dulov
<d.dulov@aladdin.ru>
Sun, 11 Feb 2024 15:05:35 +0000
(07:05 -0800)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Mon, 12 Feb 2024 16:25:42 +0000
(17:25 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/net/can/softing/softing_fw.c
b/drivers/net/can/softing/softing_fw.c
index
32286f8
..
721df91
100644
(file)
--- 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 */