can: m_can: Remove double interrupt enable
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Wed, 15 Mar 2023 11:05:33 +0000 (12:05 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 24 Mar 2023 18:13:54 +0000 (19:13 +0100)
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>
drivers/net/can/m_can/m_can.c

index 8eb327a..5274d96 100644 (file)
@@ -1364,7 +1364,6 @@ static int m_can_chip_config(struct net_device *dev)
        m_can_write(cdev, M_CAN_TEST, test);
 
        /* Enable interrupts */
-       m_can_write(cdev, M_CAN_IR, IR_ALL_INT);
        if (!(cdev->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING))
                if (cdev->version == 30)
                        m_can_write(cdev, M_CAN_IE, IR_ALL_INT &