summaryrefslogtreecommitdiff
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-09-30 22:57:15 +0300
committerJens Axboe <axboe@kernel.dk>2020-09-30 20:38:45 -0600
commit5b09e37e27a878eb50f0eb96fbce8419e932a7d5 (patch)
tree5fe3cd3b4be7de394bd53d7c01f79a846cd9e162 /fs/io_uring.c
parent291b2821e072e16b062c5a0e83f7642143c4399a (diff)
downloadlwn-5b09e37e27a878eb50f0eb96fbce8419e932a7d5.tar.gz
lwn-5b09e37e27a878eb50f0eb96fbce8419e932a7d5.zip
io_uring: io_kiocb_ppos() style change
Put brackets around bitwise ops in a complex expression Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index cdd59467576d..513b3a59af37 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -3008,7 +3008,7 @@ static ssize_t io_import_iovec(int rw, struct io_kiocb *req,
static inline loff_t *io_kiocb_ppos(struct kiocb *kiocb)
{
- return kiocb->ki_filp->f_mode & FMODE_STREAM ? NULL : &kiocb->ki_pos;
+ return (kiocb->ki_filp->f_mode & FMODE_STREAM) ? NULL : &kiocb->ki_pos;
}
/*