Skip to content
Commit 9e4d6909 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

can: janz-ican3: cleanup of ican3_to_can_frame and can_frame_to_ican3



This patch cleans up the ICAN3 to Linux CAN frame and vice versa
conversion functions:

- RX: Use get_can_dlc() to limit the dlc value.
- RX+TX: Don't copy the whole frame, only copy the amount of bytes
  specified in cf->can_dlc.

Acked-by: default avatarIra W. Snyder <iws@ovro.caltech.edu>
Tested-by: default avatarIra W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 007890d7
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