staging/wilc1000: fix wilc_mac_xmit()'s return type
The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', which is a typedef for an enum type, but the implementation in this driver returns an 'int'. Fix this by returning 'netdev_tx_t' in this driver too. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
30ad32cd62
Коммит
ad8918077d
|
@ -939,7 +939,7 @@ static void linux_wlan_tx_complete(void *priv, int status)
|
|||
kfree(pv_data);
|
||||
}
|
||||
|
||||
int wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||
netdev_tx_t wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||
{
|
||||
struct wilc_vif *vif;
|
||||
struct tx_complete_data *tx_data = NULL;
|
||||
|
|
|
@ -298,7 +298,7 @@ void wilc_chip_sleep_manually(struct wilc *wilc);
|
|||
|
||||
void wilc_enable_tcp_ack_filter(bool value);
|
||||
int wilc_wlan_get_num_conn_ifcs(struct wilc *wilc);
|
||||
int wilc_mac_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
netdev_tx_t wilc_mac_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
|
||||
void wilc_wfi_p2p_rx(struct net_device *dev, u8 *buff, u32 size);
|
||||
void host_wakeup_notify(struct wilc *wilc);
|
||||
|
|
Загрузка…
Ссылка в новой задаче