Skip to content

Commit 61e02cd

Browse files
bulwahnAl Viro
authored andcommitted
aio: drop needless assignment in aio_read()
Commit 84c4e1f ("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>
1 parent 124f75f commit 61e02cd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/aio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,6 @@ static int aio_read(struct kiocb *req, const struct iocb *iocb,
15531553
file = req->ki_filp;
15541554
if (unlikely(!(file->f_mode & FMODE_READ)))
15551555
return -EBADF;
1556-
ret = -EINVAL;
15571556
if (unlikely(!file->f_op->read_iter))
15581557
return -EINVAL;
15591558

0 commit comments

Comments
 (0)