diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-10-10 18:34:08 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-10 12:49:24 -0600 |
commit | 8371adf53c3c5ebfde1172608d3f4e126729cb10 (patch) | |
tree | 2432657ad83ec5d4e84f928ddc2a633b9094f355 /arch/sh | |
parent | 479f517be57185087c2ae3c5e5aea0c3c6d4e5cc (diff) |
io_uring: simplify io_file_get()
Keep ->needs_file_no_error check out of io_file_get(), and let callers
handle it. It makes it more straightforward. Also, as the only error it
can hand back -EBADF, make it return a file or NULL.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions