Skip to content

Commit 1449038

Browse files
committed
esp_hosted_ng: Remove ndo_tx_timeout function
1 parent 98f8ece commit 1449038

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

esp_hosted_ng/host/include/esp_kernel_port.h

-8
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,6 @@ static inline void *skb_put_data(struct sk_buff *skb, const void *data,
160160
}
161161
#endif
162162

163-
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0))
164-
#define NDO_TX_TIMEOUT_PROTOTYPE() \
165-
void esp_tx_timeout(struct net_device *ndev)
166-
#else
167-
#define NDO_TX_TIMEOUT_PROTOTYPE() \
168-
void esp_tx_timeout(struct net_device *ndev, unsigned int txqueue)
169-
#endif
170-
171163
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0))
172164
#define do_exit(code) kthread_complete_and_exit(NULL, code)
173165
#endif

esp_hosted_ng/host/main.c

-5
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,6 @@ static int esp_set_mac_address(struct net_device *ndev, void *data)
306306
return ret;
307307
}
308308

309-
static NDO_TX_TIMEOUT_PROTOTYPE()
310-
{
311-
}
312-
313309
static void esp_set_rx_mode(struct net_device *ndev)
314310
{
315311
struct esp_wifi_device *priv = netdev_priv(ndev);
@@ -384,7 +380,6 @@ static const struct net_device_ops esp_netdev_ops = {
384380
.ndo_start_xmit = esp_hard_start_xmit,
385381
.ndo_set_mac_address = esp_set_mac_address,
386382
.ndo_validate_addr = eth_validate_addr,
387-
.ndo_tx_timeout = esp_tx_timeout,
388383
.ndo_get_stats = esp_get_stats,
389384
.ndo_set_rx_mode = esp_set_rx_mode,
390385
};

0 commit comments

Comments
 (0)