mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
parent
22bd002ee7
commit
72c2d53192
29 changed files with 74 additions and 97 deletions
|
|
@ -56,7 +56,7 @@ static int setfl(int fd, struct file * filp, unsigned long arg)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (filp->f_op && filp->f_op->check_flags)
|
||||
if (filp->f_op->check_flags)
|
||||
error = filp->f_op->check_flags(arg);
|
||||
if (error)
|
||||
return error;
|
||||
|
|
@ -64,8 +64,7 @@ static int setfl(int fd, struct file * filp, unsigned long arg)
|
|||
/*
|
||||
* ->fasync() is responsible for setting the FASYNC bit.
|
||||
*/
|
||||
if (((arg ^ filp->f_flags) & FASYNC) && filp->f_op &&
|
||||
filp->f_op->fasync) {
|
||||
if (((arg ^ filp->f_flags) & FASYNC) && filp->f_op->fasync) {
|
||||
error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0);
|
||||
if (error < 0)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue