aboutsummaryrefslogtreecommitdiffstats
path: root/net/can/af_can.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/can/af_can.c')
-rw-r--r--net/can/af_can.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c
index fa417ca6cbe6..547bafc79e28 100644
--- a/net/can/af_can.c
+++ b/net/can/af_can.c
@@ -273,8 +273,7 @@ int can_send(struct sk_buff *skb, int loop)
273 err = net_xmit_errno(err); 273 err = net_xmit_errno(err);
274 274
275 if (err) { 275 if (err) {
276 if (newskb) 276 kfree_skb(newskb);
277 kfree_skb(newskb);
278 return err; 277 return err;
279 } 278 }
280 279
@@ -828,7 +827,7 @@ static int can_notifier(struct notifier_block *nb, unsigned long msg,
828 */ 827 */
829 828
830static struct packet_type can_packet __read_mostly = { 829static struct packet_type can_packet __read_mostly = {
831 .type = __constant_htons(ETH_P_CAN), 830 .type = cpu_to_be16(ETH_P_CAN),
832 .dev = NULL, 831 .dev = NULL,
833 .func = can_rcv, 832 .func = can_rcv,
834}; 833};