can: c_can: Simplify buffer reenabling
authorThomas Gleixner <tglx@linutronix.de>
Fri, 11 Apr 2014 08:13:14 +0000 (08:13 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:08:57 +0000 (22:08 +0200)
commit6b48ff8d934ab5ca6697b0e311e7869ff4a1d3f3
tree36fd150dc1ba195e2695341e93ebfeddc1393037
parent1da394d889b4110bda954813ef32601c06118376
can: c_can: Simplify buffer reenabling

Instead of writing to the message object we can simply clear the
NewDat bit with the get method.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c