mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 01:33:00 -04:00
[PATCH] introduce fmode_t, do annotations
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
2515ddc6db
commit
aeb5d72706
41 changed files with 96 additions and 98 deletions
|
|
@ -86,7 +86,7 @@ static int eisa_eeprom_open(struct inode *inode, struct file *file)
|
|||
{
|
||||
cycle_kernel_lock();
|
||||
|
||||
if (file->f_mode & 2)
|
||||
if (file->f_mode & FMODE_WRITE)
|
||||
return -EINVAL;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue