]> Gentwo Git Trees - linux/.git/commit
ublk: return unsigned from ublk_{,un}map_io()
authorCaleb Sander Mateos <csander@purestorage.com>
Sat, 8 Nov 2025 04:23:16 +0000 (21:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Nov 2025 14:57:20 +0000 (07:57 -0700)
commit727a44027815aea13d34c28254d386562efc3bab
tree815764c9c8902cb32d879bcbee7ec470a828f966
parent6b0a29933f688a284e8869da0f63a93acf893757
ublk: return unsigned from ublk_{,un}map_io()

ublk_map_io() and ublk_unmap_io() never return negative values, and
their return values are stored in variables of type unsigned. Clarify
that they can't fail by making their return types unsigned.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c