kernel: remove obsolete kernel version switches
[openwrt/openwrt.git] / target / linux / ath79 / files / drivers / net / ethernet / atheros / ag71xx / ag71xx_main.c
index d553c62401a5a6d1f25aaaa726e9b86e42be888f..06ebbd8ea3893fe3018eb35780148e348cc41f57 100644 (file)
@@ -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;