projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c5966a
)
can:ipms_can: Added return values for other cases
author
William Qiu
<william.qiu@starfivetech.com>
Fri, 26 Aug 2022 02:38:21 +0000
(10:38 +0800)
committer
William 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
patch
|
blob
|
history
diff --git
a/drivers/net/can/ipms_canfd.c
b/drivers/net/can/ipms_canfd.c
index e29d8eba7f08aaec366a91ffbf7d1d67b9d26596..cfa499248eabe07249bbad0db9517b3f3f29ab0e 100644
(file)
--- a/
drivers/net/can/ipms_canfd.c
+++ b/
drivers/net/can/ipms_canfd.c
@@
-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)