summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLukas Bulwahn <lukas.bulwahn@gmail.com>2022-03-14 16:46:05 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2022-03-16 00:43:19 +0100
commit61e02cdb6ac68a84f1bb95026632d63677f26202 (patch)
tree6488e7feabab614654c35e585659a4ac8ef4e710 /fs
parentclean overflow checks in count_mounts() a bit (diff)
downloadlinux-61e02cdb6ac68a84f1bb95026632d63677f26202.tar.xz
linux-61e02cdb6ac68a84f1bb95026632d63677f26202.zip
aio: drop needless assignment in aio_read()
Commit 84c4e1f89fef ("aio: simplify - and fix - fget/fput for io_submit()") refactored aio_read() and some error cases into early return, which made some intermediate assignment of the return variable needless. Drop this needless assignment in aio_read(). No functional change. No change in resulting object code. Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/aio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/aio.c b/fs/aio.c
index 4ceba13a7db0..3b7cdcc2a02e 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1553,7 +1553,6 @@ static int aio_read(struct kiocb *req, const struct iocb *iocb,
file = req->ki_filp;
if (unlikely(!(file->f_mode & FMODE_READ)))
return -EBADF;
- ret = -EINVAL;
if (unlikely(!file->f_op->read_iter))
return -EINVAL;