From: Roel Kluin <12o3l@tiscali.nl> Date: Mon, 5 Nov 2007 22:50:58 +0000 (-0800) Subject: paride: fix 'and' typo in drivers/block/paride/pt.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b07989f51eea16e2fe3eab032801599d952966fb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c index 9f4e67ee1eb0..b91accf12656 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))