net: fixup type in netdev_start_xmit()
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 24 Nov 2018 09:01:41 +0000 (12:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Nov 2018 01:33:21 +0000 (17:33 -0800)
Return code should be formally "netdev_tx_t".

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 4b4207ebd5c0be3a075ecc2e4b4541ed3b6a3d5b..1eeb019d85a301aef3f67c1a6e6cdab91042b3e8 100644 (file)
@@ -4373,7 +4373,7 @@ static inline netdev_tx_t netdev_start_xmit(struct sk_buff *skb, struct net_devi
                                            struct netdev_queue *txq, bool more)
 {
        const struct net_device_ops *ops = dev->netdev_ops;
-       int rc;
+       netdev_tx_t rc;
 
        rc = __netdev_start_xmit(ops, skb, dev, more);
        if (rc == NETDEV_TX_OK)