Commit b07989f5 authored by Roel Kluin's avatar Roel Kluin Committed by Linus Torvalds

paride: fix 'and' typo in drivers/block/paride/pt.c

Fix 'and' typo (PT_WRITE_OK is defined 2)
Signed-off-by: default avatarRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6551198a
...@@ -664,7 +664,7 @@ static int pt_open(struct inode *inode, struct file *file) ...@@ -664,7 +664,7 @@ static int pt_open(struct inode *inode, struct file *file)
goto out; goto out;
err = -EROFS; err = -EROFS;
if ((!tape->flags & PT_WRITE_OK) && (file->f_mode & 2)) if ((!(tape->flags & PT_WRITE_OK)) && (file->f_mode & 2))
goto out; goto out;
if (!(iminor(inode) & 128)) if (!(iminor(inode) & 128))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment