summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-09-30 21:57:15 +0200
committerJens Axboe <axboe@kernel.dk>2020-10-01 04:38:45 +0200
commit5b09e37e27a878eb50f0eb96fbce8419e932a7d5 (patch)
tree5fe3cd3b4be7de394bd53d7c01f79a846cd9e162 /fs
parentio_uring: simplify io_alloc_req() (diff)
downloadlinux-5b09e37e27a878eb50f0eb96fbce8419e932a7d5.tar.xz
linux-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')
-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;
}
/*