Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: m_can: Remove double interrupt enable

Interrupts are enabled a few lines further down as well. Remove this
second call to enable all interrupts.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/all/20230315110546.2518305-4-msp@baylibre.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Markus Schneider-Pargmann and committed by
Marc Kleine-Budde
71725bfd 4ab63948

-1
-1
drivers/net/can/m_can/m_can.c
··· 1364 1364 m_can_write(cdev, M_CAN_TEST, test); 1365 1365 1366 1366 /* Enable interrupts */ 1367 - m_can_write(cdev, M_CAN_IR, IR_ALL_INT); 1368 1367 if (!(cdev->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) 1369 1368 if (cdev->version == 30) 1370 1369 m_can_write(cdev, M_CAN_IE, IR_ALL_INT &