mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
6551198a20
commit
b07989f51e
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue