From 61e02cdb6ac68a84f1bb95026632d63677f26202 Mon Sep 17 00:00:00 2001 From: Lukas Bulwahn Date: Mon, 14 Mar 2022 16:46:05 +0100 Subject: 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 Signed-off-by: Al Viro --- fs/aio.c | 1 - 1 file changed, 1 deletion(-) (limited to 'fs/aio.c') 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; -- cgit v1.2.3-58-ga151