diff options
author | Aleksander Jan Bajkowski <olek2@wp.pl> | 2023-05-14 11:43:57 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2023-05-20 15:19:14 +0200 |
commit | 7365e6b00a7ab823467b7d92d4f3f0bdbe271f35 (patch) | |
tree | f3a7cc668c0e4b4a9c3c46a7aac21117a7ed2fc5 /target/linux/ath79 | |
parent | 5e91b4507c0010970482099464b44a5404835caa (diff) | |
download | upstream-7365e6b00a7ab823467b7d92d4f3f0bdbe271f35.tar.gz upstream-7365e6b00a7ab823467b7d92d4f3f0bdbe271f35.tar.bz2 upstream-7365e6b00a7ab823467b7d92d4f3f0bdbe271f35.zip |
kernel: remove obsolete kernel version switches
This removes unneeded kernel version switches from the targets after
kernel 5.10 has been dropped.
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Diffstat (limited to 'target/linux/ath79')
-rw-r--r-- | target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index d553c62401..06ebbd8ea3 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -1352,11 +1352,7 @@ static int ag71xx_rx_packets(struct ag71xx *ag, int limit) dev->stats.rx_packets++; dev->stats.rx_bytes += pktlen; -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - skb = build_skb(ring->buf[i].rx_buf, ag71xx_buffer_size(ag)); -#else skb = napi_build_skb(ring->buf[i].rx_buf, ag71xx_buffer_size(ag)); -#endif if (!skb) { skb_free_frag(ring->buf[i].rx_buf); goto next; |