usbnet: fix CFI checking failure

Correct function usb_ether_xmit return value type to match
the prototype of the member ndo_start_xmit in struct net_device_ops
to avoid CFI checking failure.

Change-Id: I8439e967ee824bb5f0ac8447d79ae066379a6465
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1818255
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
yanyh2 2020-12-03 20:56:06 +08:00 • committed by Yonghua Yan
commit 70bbf3279e

View file

@ -342,7 +342,7 @@ struct usb_request *usb_get_xmit_request(int stop_flag, struct net_device *dev)
return req;
}
static int usb_ether_xmit(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t usb_ether_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct usbnet_context *context = netdev_priv(dev);
struct usb_request *req;