Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: caif: Fix use correct return type for ndo_start_xmit()

The method ndo_start_xmit() returns a value of type netdev_tx_t. Fix
the ndo function to use the correct type.

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Yunjian Wang and committed by
David S. Miller
99b2292b 4b88de9f

+2 -1
+2 -1
net/caif/chnl_net.c
··· 211 211 } 212 212 } 213 213 214 - static int chnl_net_start_xmit(struct sk_buff *skb, struct net_device *dev) 214 + static netdev_tx_t chnl_net_start_xmit(struct sk_buff *skb, 215 + struct net_device *dev) 215 216 { 216 217 struct chnl_net *priv; 217 218 struct cfpkt *pkt = NULL;