From: Lukas Bulwahn Date: Mon, 14 Mar 2022 15:46:05 +0000 (+0100) Subject: aio: drop needless assignment in aio_read() X-Git-Tag: v5.18-rc1~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61e02cdb6ac68a84f1bb95026632d63677f26202;p=thirdparty%2Flinux.git 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 --- diff --git a/fs/aio.c b/fs/aio.c index 4ceba13a7db0f..3b7cdcc2a02e0 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;