aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-atm/src
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-10-01 16:47:34 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-10-30 19:44:41 +0100
commitac5671f46cb4a300e2a8ae00db70c248828367f5 (patch)
tree546f7d3f903edc844b2c11d534999ef2e18c1fcf /package/kernel/lantiq/ltq-atm/src
parent278512665094888d3c007fdd74e090496d6c811d (diff)
downloadupstream-ac5671f46cb4a300e2a8ae00db70c248828367f5.tar.gz
upstream-ac5671f46cb4a300e2a8ae00db70c248828367f5.tar.bz2
upstream-ac5671f46cb4a300e2a8ae00db70c248828367f5.zip
kernel: remove obsolete kernel version switches for 4.19
This removes switches dependent on kernel version 4.19 as well as several packages/modules selected only for that version. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/kernel/lantiq/ltq-atm/src')
-rw-r--r--package/kernel/lantiq/ltq-atm/src/ltq_atm.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
index f5dbfaae2d..55362a5c7b 100644
--- a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
+++ b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
@@ -289,17 +289,9 @@ static int ppe_ioctl(struct atm_dev *dev, unsigned int cmd, void *arg)
return -ENOTTY;
if ( _IOC_DIR(cmd) & _IOC_READ )
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0)
ret = !access_ok(arg, _IOC_SIZE(cmd));
-#else
- ret = !access_ok(VERIFY_WRITE, arg, _IOC_SIZE(cmd));
-#endif
else if ( _IOC_DIR(cmd) & _IOC_WRITE )
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0)
ret = !access_ok(arg, _IOC_SIZE(cmd));
-#else
- ret = !access_ok(VERIFY_READ, arg, _IOC_SIZE(cmd));
-#endif
if ( ret )
return -EFAULT;