can: c_can: remove wrong comment
The comment referred to a status (warning) other than the one that was being managed (active error). Link: https://lore.kernel.org/all/20220716170112.2020291-1-dario.binacchi@amarulasolutions.com Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
c688702326
commit
4940eb51fc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user