hw/block/nand: Have blk_load() take unsigned offset and return boolean
commit2e3e09b368001f7eaeeca7a9b49cb1f0c9092d85
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 8 Apr 2024 08:21:03 +0000 (8 10:21 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 10 Apr 2024 07:09:34 +0000 (10 09:09 +0200)
tree662a6701339027b7abd6612636511fc102d6b767
parent7a86544f286d8af4fa5251101c1026ddae92cc3d
hw/block/nand: Have blk_load() take unsigned offset and return boolean

Negative offset is meaningless, use unsigned type.
Return a boolean value indicating success.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240409135944.24997-3-philmd@linaro.org>
hw/block/nand.c