net: use NETDEV_TX_OK instead of 0 in ndo_start_xmit() functions
This patch is the result of an automatic spatch transformation to convert all ndo_start_xmit() return values of 0 to NETDEV_TX_OK. Some occurences are missed by the automatic conversion, those will be handled in a seperate patch. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Šī revīzija ir iekļauta:

revīziju iesūtīja
David S. Miller

vecāks
0e8635a8e1
revīzija
6ed106549d
@@ -1095,11 +1095,11 @@ static int TLan_StartTx( struct sk_buff *skb, struct net_device *dev )
|
||||
TLAN_DBG( TLAN_DEBUG_TX, "TRANSMIT: %s PHY is not ready\n",
|
||||
dev->name );
|
||||
dev_kfree_skb_any(skb);
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
if (skb_padto(skb, TLAN_MIN_FRAME_SIZE))
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
txlen = max(skb->len, (unsigned int)TLAN_MIN_FRAME_SIZE);
|
||||
|
||||
tail_list = priv->txList + priv->txTail;
|
||||
@@ -1150,7 +1150,7 @@ static int TLan_StartTx( struct sk_buff *skb, struct net_device *dev )
|
||||
CIRC_INC( priv->txTail, TLAN_NUM_TX_LISTS );
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
|
||||
} /* TLan_StartTx */
|
||||
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user