]> git.baikalelectronics.ru Git - kernel.git/commit
fs/direct-io.c: adjust suspicious bit operation
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 7 Jun 2012 22:45:00 +0000 (15:45 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 12:32:46 +0000 (16:32 +0400)
commitccb0854895ec02ed74e0496fd7d91dc4b34658ae
treea3efbbb2655fd932fa3f27888315b91b07bb0710
parentee75430e0a03a7937a6cfed23a7615e402a9cd4d
fs/direct-io.c: adjust suspicious bit operation

READ is 0, so the result of the bit-and operation is 0.  Rewrite with == as
done elsewhere in the same file.

This problem was found using Coccinelle (http://coccinelle.lip6.fr/).

Signed-off-by: Julia Lawall <julia@diku.dk>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/direct-io.c