mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-06 06:06:09 +00:00
Minor cleanup to Kernel v4.14 Support
This commit is contained in:
parent
3e70835ef0
commit
8c2fe69b29
@ -1919,12 +1919,10 @@ static int readFile(struct file *fp, char *buf, int len)
|
|||||||
return -EPERM;
|
return -EPERM;
|
||||||
|
|
||||||
while (sum < len) {
|
while (sum < len) {
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0))
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
|
||||||
rlen = kernel_read(fp, buf + sum, len - sum, &fp->f_pos);
|
rlen = kernel_read(fp, buf + sum, len - sum, &fp->f_pos);
|
||||||
#else
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0))
|
||||||
rlen = __vfs_read(fp, buf + sum, len - sum, &fp->f_pos);
|
rlen = __vfs_read(fp, buf + sum, len - sum, &fp->f_pos);
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
rlen = fp->f_op->read(fp, buf + sum, len - sum, &fp->f_pos);
|
rlen = fp->f_op->read(fp, buf + sum, len - sum, &fp->f_pos);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user