Skip to content

Commit 51070a3

Browse files
wyjwangdavem330
authored andcommitted
rionet: Fix use correct return type for ndo_start_xmit()
The method ndo_start_xmit() returns a value of type netdev_tx_t. Fix the ndo function to use the correct type. Signed-off-by: Yunjian Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 99b2292 commit 51070a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/rionet.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ static int rionet_queue_tx_msg(struct sk_buff *skb, struct net_device *ndev,
166166
return 0;
167167
}
168168

169-
static int rionet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
169+
static netdev_tx_t rionet_start_xmit(struct sk_buff *skb,
170+
struct net_device *ndev)
170171
{
171172
int i;
172173
struct rionet_private *rnet = netdev_priv(ndev);

0 commit comments

Comments
 (0)