net: convert remaining non-symbolic return values in ndo_start_xmit() functions
This patch converts the remaining occurences of raw return values to their symbolic counterparts in ndo_start_xmit() functions that were missed by the previous automatic conversion. Additionally code that assumed the symbolic value of NETDEV_TX_OK to be zero is changed to explicitly use NETDEV_TX_OK. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a73e76e23c
commit
ec634fe328
@@ -4277,7 +4277,7 @@ out:
|
||||
dev_kfree_skb(skb);
|
||||
}
|
||||
read_unlock(&bond->lock);
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -4308,7 +4308,7 @@ out:
|
||||
|
||||
read_unlock(&bond->curr_slave_lock);
|
||||
read_unlock(&bond->lock);
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -4354,7 +4354,7 @@ out:
|
||||
dev_kfree_skb(skb);
|
||||
}
|
||||
read_unlock(&bond->lock);
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -4414,7 +4414,7 @@ out:
|
||||
|
||||
/* frame sent to all suitable interfaces */
|
||||
read_unlock(&bond->lock);
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
/*------------------------- Device initialization ---------------------------*/
|
||||
|
Reference in New Issue
Block a user