diff options
author | Christoph Hellwig <hch@lst.de> | 2023-06-14 16:03:39 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-16 18:08:08 +0200 |
commit | 2e82f6c3bfd1acde2610dd9feb4f2b264c4ef742 (patch) | |
tree | 8e0f5138315a2d8ac14c04658ced8b5b6415716a /block | |
parent | splice: don't call file_accessed in copy_splice_read (diff) | |
download | linux-2e82f6c3bfd1acde2610dd9feb4f2b264c4ef742.tar.xz linux-2e82f6c3bfd1acde2610dd9feb4f2b264c4ef742.zip |
splice: simplify a conditional in copy_splice_read
Check for -EFAULT instead of wrapping the check in an ret < 0 block.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20230614140341.521331-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions