can: dev: __can_get_echo_skb(): replace struct can_frame by canfd_frame to access...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 31 Oct 2018 10:08:21 +0000 (11:08 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 9 Nov 2018 16:20:40 +0000 (17:20 +0100)
commit200f5c49f7a2cd694436bfc6cb0662b794c96736
tree9be52e5012e1d5a76703db44a516eb1d4241d5fe
parenta4310fa2f24687888ce80fdb0e88583561a23700
can: dev: __can_get_echo_skb(): replace struct can_frame by canfd_frame to access frame length

This patch replaces the use of "struct can_frame::can_dlc" by "struct
canfd_frame::len" to access the frame's length. As it is ensured that
both structures have a compatible memory layout for this member this is
no functional change. Futher, this compatibility is documented in a
comment.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c