* [PATCH] fix 'and' typo in drivers/block/paride/pt.c
@ 2007-10-27 15:32 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2007-10-27 15:32 UTC (permalink / raw)
To: lkml
Fix 'and' typo (PT_WRITE_OK is defined 2)
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c
index 9f4e67e..b91accf 100644
--- a/drivers/block/paride/pt.c
+++ b/drivers/block/paride/pt.c
@@ -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))
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-27 15:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-27 15:32 [PATCH] fix 'and' typo in drivers/block/paride/pt.c Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox