Commit db16391
Al Stone
can: kvaser_usb: kvaser_usb_set_bittiming(): fix redundant initialization warning for err
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071839
Tested: This is one of a series of patch sets to enable Arm SystemReady IR
support. This set updates the CAN driver subsystem. This set has
been tested on NXP imx8mm and NV Jetson Xavier NX via simple boot
tests, using cansend/candump from can-utils to pass messages through
a virtual CAN interface, and of course the CI loop.
commit cce2d7d
Author: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Mon Oct 31 12:26:24 2022 +0100
can: kvaser_usb: kvaser_usb_set_bittiming(): fix redundant initialization warning for err
The variable err is initialized, but the initialized value is
Overwritten before it is read. Fix the warning by not initializing the
variable err at all.
Fixes: 39d3df6 ("can: kvaser_usb: Compare requested bittiming parameters with actual parameters in do_set_{,data}_bittiming")
Cc: Jimmy Assarsson <extja@kvaser.com>
Cc: Anssi Hannula <anssi.hannula@bitwise.fi>
Link: https://lore.kernel.org/all/20221031114513.81214-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
(cherry picked from commit cce2d7d)
Signed-off-by: Al Stone <ahs3@redhat.com>1 parent d6ae2d6 commit db16391
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
| 543 | + | |
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| |||
0 commit comments