can: mcp251x: avoid write to error flag register if it's unnecessary
authorEd Spiridonov <edo.rus@gmail.com>
Fri, 4 Mar 2016 06:07:27 +0000 (09:07 +0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 4 Mar 2016 07:45:17 +0000 (08:45 +0100)
commitd694b06c42a56c9610861ee0474b4d441af8ada6
tree1988f2ad6c038661dd1b5a925b624dad908c1332
parentc1bb0a5588816ec26abc08aa9adcf90e32656781
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: Ed Spiridonov <edo.rus@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251x.c