Merge tag 'pci-v5.18-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / fs / aio.c
index 7b66b93d5bfa7a3e0e750c7eed1fd890116ca2d5..3c249b93863274ccb6b1d10c05fa901861e5c848 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1552,7 +1552,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;