fix ! versus & precedence in various places
Fix various instances of if (!expr & mask) which should probably have been if (!(expr & mask)) Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Jens Axboe <jens.axboe@oracle.com> Cc: Peter Osterlund <petero2@telia.com> Cc: Karsten Keil <kkeil@suse.de> Cc: Mauro Carvalho Chehab <mchehab@infradead.org> Cc: "Antonino A. Daplas" <adaplas@pol.net> Cc: Mark Fasheh <mark.fasheh@oracle.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jeff Garzik <jeff@garzik.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
551e4fb246
commit
eaa0ff15c3
@@ -660,7 +660,7 @@ static int pt_open(struct inode *inode, struct file *file)
|
||||
pt_identify(tape);
|
||||
|
||||
err = -ENODEV;
|
||||
if (!tape->flags & PT_MEDIA)
|
||||
if (!(tape->flags & PT_MEDIA))
|
||||
goto out;
|
||||
|
||||
err = -EROFS;
|
||||
|
||||
Reference in New Issue
Block a user