Skip to content
Commit d694b06c authored by Ed Spiridonov's avatar Ed Spiridonov Committed by Marc Kleine-Budde
Browse files

can: mcp251x: avoid write to error flag register if it's unnecessary



Only two bits (RX0OVR and RX1OVR) are writable in EFLG, write is useless
if these bits aren't set.

Signed-off-by: default avatarEd Spiridonov <edo.rus@gmail.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent c1bb0a55
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment