net: ethernet: aquantia: Using NETDEV_TX_OK instead 0.
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 20 Feb 2017 19:36:45 +0000 (22:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 22:11:09 +0000 (17:11 -0500)
Use NETDEV_TX_OK as the return value for successful transmission.

Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Reviewed-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_nic.c

index 646314c6f237ab96849a6988776d4ca1ad72bd78..019bcc725715f977e71bc670fd3cc263eb8e8b8a 100644 (file)
@@ -568,7 +568,7 @@ __acquires(&ring->lock)
        unsigned int vec = skb->queue_mapping % self->aq_nic_cfg.vecs;
        unsigned int tc = 0U;
        unsigned int trys = AQ_CFG_LOCK_TRYS;
-       int err = 0;
+       int err = NETDEV_TX_OK;
        bool is_nic_in_bad_state;
        struct aq_ring_buff_s buffers[AQ_CFG_SKB_FRAGS_MAX];