diff options
author | Gabor Juhos <juhosg@freemail.hu> | 2018-01-09 21:20:13 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-01-09 21:33:18 +0100 |
commit | 8f44c8086be7fd080f4ae2f6bbd5296482d99776 (patch) | |
tree | 14e1639e007e34f040d3da3666d502852dfede23 /target/linux | |
parent | 7a4930b27c2f4d336b4f69a5f47c4843876bf021 (diff) | |
download | upstream-8f44c8086be7fd080f4ae2f6bbd5296482d99776.tar.gz upstream-8f44c8086be7fd080f4ae2f6bbd5296482d99776.tar.bz2 upstream-8f44c8086be7fd080f4ae2f6bbd5296482d99776.zip |
ar71xx: remove obsolete '< KERNEL_VERSION(4, 2, 0)' check
Because the oldest supported kernel version on the ar71xx target is 4.4,
the condition that the kernel version is smaller than 4.2.0 is always
false. Remove the obsolete check from ag71xx_main.c to clean up the code
a bit.
Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index 72dd654a69..93f8c5305d 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -13,13 +13,6 @@ #include "ag71xx.h" -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) -static inline void skb_free_frag(void *data) -{ - put_page(virt_to_head_page(data)); -} -#endif - #define AG71XX_DEFAULT_MSG_ENABLE \ (NETIF_MSG_DRV \ | NETIF_MSG_PROBE \ |