On Mon, Sep 30, 2024 at 08:03:46PM +0200, Marc Kleine-Budde wrote: > The condition to call free_irq() in the error cleanup path of > m_can_open() can be simplified. The "is_peripheral" case also has a > "dev->irq != 0". > > Simplify the condition, call free_irq() if "dev->irq != 0", i.e. the > device has an interrupt. > > Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> Reviewed-by: Simon Horman <horms@xxxxxxxxxx>