[PATCH] introduce fmode_t, do annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2008-09-02 15:28:45 -04:00
parent 2515ddc6db
commit aeb5d72706
41 changed files with 96 additions and 98 deletions

View File

@@ -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;