[PATCH] introduce fmode_t, do annotations

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2008-09-02 15:28:45 -04:00
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;