Skip to content

Commit

Permalink
paride: fix 'and' typo in drivers/block/paride/pt.c
Browse files Browse the repository at this point in the history
Fix 'and' typo (PT_WRITE_OK is defined 2)

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Roel Kluin authored and Linus Torvalds committed Nov 5, 2007
1 parent 6551198 commit b07989f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/paride/pt.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ static int pt_open(struct inode *inode, struct file *file)
goto out;

err = -EROFS;
if ((!tape->flags & PT_WRITE_OK) && (file->f_mode & 2))
if ((!(tape->flags & PT_WRITE_OK)) && (file->f_mode & 2))
goto out;

if (!(iminor(inode) & 128))
Expand Down

0 comments on commit b07989f

Please sign in to comment.