Skip to content

Commit b07989f

Browse files
Roel KluinLinus Torvalds
authored andcommitted
paride: fix 'and' typo in drivers/block/paride/pt.c
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>
1 parent 6551198 commit b07989f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/block/paride

‎drivers/block/paride/pt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ static int pt_open(struct inode *inode, struct file *file)
664664
goto out;
665665

666666
err = -EROFS;
667-
if ((!tape->flags & PT_WRITE_OK) && (file->f_mode & 2))
667+
if ((!(tape->flags & PT_WRITE_OK)) && (file->f_mode & 2))
668668
goto out;
669669

670670
if (!(iminor(inode) & 128))

0 commit comments

Comments
 (0)