can:ipms_can: Added return values for other cases
authorWilliam Qiu <william.qiu@starfivetech.com>
Fri, 26 Aug 2022 02:38:21 +0000 (10:38 +0800)
committerWilliam Qiu <william.qiu@starfivetech.com>
Fri, 26 Aug 2022 02:38:21 +0000 (10:38 +0800)
Added return values for other cases.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
drivers/net/can/ipms_canfd.c

index e29d8eba7f08aaec366a91ffbf7d1d67b9d26596..cfa499248eabe07249bbad0db9517b3f3f29ab0e 100644 (file)
@@ -719,6 +719,8 @@ static enum can_state get_of_chip_status(struct net_device *ndev)
 
        if (~(eir & CAN_FD_SET_EPASS_MASK))
                return CAN_STATE_ERROR_ACTIVE;
+
+       return CAN_STATE_ERROR_ACTIVE;
 }
 
 static void canfd_error_interrupt(struct net_device *ndev, u8 isr, u8 eir)