]> git.baikalelectronics.ru Git - kernel.git/commit
lib/scatterlist: use consistent sg_copy_buffer() return type
authorDavid Disseldorp <ddiss@suse.de>
Mon, 26 Oct 2020 21:03:10 +0000 (22:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Oct 2020 14:55:45 +0000 (08:55 -0600)
commit91b6ab78b42243e3977af8dce3c9729c0704669f
tree12ed4266e705aac6a2156619df5183da16f5bf16
parent48d6de6d956247a625b17d569c6b2ff18c36040e
lib/scatterlist: use consistent sg_copy_buffer() return type

sg_copy_buffer() returns a size_t with the number of bytes copied.
Return 0 instead of false if the copy is skipped.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/scatterlist.c