File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ MODULE_ALIAS("can-proto-" __stringify(CAN_J1939));
3030/* CAN_HDR: #bytes before can_frame data part */
3131#define J1939_CAN_HDR (offsetof(struct can_frame, data))
3232
33- /* CAN_FTR: #bytes beyond data part */
34- #define J1939_CAN_FTR (sizeof(struct can_frame) - J1939_CAN_HDR - \
35- sizeof(((struct can_frame *)0)->data))
36-
3733/* lowest layer */
3834static void j1939_can_recv (struct sk_buff * iskb , void * data )
3935{
@@ -342,7 +338,7 @@ int j1939_send_one(struct j1939_priv *priv, struct sk_buff *skb)
342338 memset (cf , 0 , J1939_CAN_HDR );
343339
344340 /* make it a full can frame again */
345- skb_put (skb , J1939_CAN_FTR + ( 8 - dlc ) );
341+ skb_put_zero (skb , 8 - dlc );
346342
347343 canid = CAN_EFF_FLAG |
348344 (skcb -> priority << 26 ) |
You can’t perform that action at this time.
0 commit comments