* [PATCH] can: c_can: remove wrong comment
@ 2022-07-16 17:01 Dario Binacchi
0 siblings, 0 replies; only message in thread
From: Dario Binacchi @ 2022-07-16 17:01 UTC (permalink / raw)
To: linux-kernel
Cc: Dario Binacchi, David S. Miller, Eric Dumazet, Jakub Kicinski,
Marc Kleine-Budde, Oliver Hartkopp, Paolo Abeni,
Stefan Mätje, Vincent Mailhol, Wolfgang Grandegger,
linux-can, netdev
The comment referred to a status (warning) other than the one that was
being managed (active error).
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
drivers/net/can/c_can/c_can_main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/can/c_can/c_can_main.c b/drivers/net/can/c_can/c_can_main.c
index a7362af0babb..ed4db4cf8716 100644
--- a/drivers/net/can/c_can/c_can_main.c
+++ b/drivers/net/can/c_can/c_can_main.c
@@ -952,7 +952,6 @@ static int c_can_handle_state_change(struct net_device *dev,
switch (error_type) {
case C_CAN_NO_ERROR:
- /* error warning state */
cf->can_id |= CAN_ERR_CRTL;
cf->data[1] = CAN_ERR_CRTL_ACTIVE;
cf->data[6] = bec.txerr;
--
2.32.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-16 17:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-16 17:01 [PATCH] can: c_can: remove wrong comment Dario Binacchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®