diff options
author | 2025-02-27 15:55:06 +0800 | |
---|---|---|
committer | 2025-03-06 08:03:28 -0700 | |
commit | 7e5102dd99f3ad1f981671ad5b4f24ac48c568ad (patch) | |
tree | db6652b05a3e235d1c0e5e6c7d383c5eb0c4d757 /scripts/gdb/linux/utils.py | |
parent | badblocks: return boolean from badblocks_set() and badblocks_clear() (diff) | |
download | wireguard-linux-7e5102dd99f3ad1f981671ad5b4f24ac48c568ad.tar.xz wireguard-linux-7e5102dd99f3ad1f981671ad5b4f24ac48c568ad.zip |
md: improve return types of badblocks handling functions
rdev_set_badblocks() only indicates success/failure, so convert its return
type from int to boolean for better semantic clarity.
rdev_clear_badblocks() return value is never used by any caller, convert it
to void. This removes unnecessary value returns.
Also update narrow_write_error() in both raid1 and raid10 to use boolean
return type to match rdev_set_badblocks().
Signed-off-by: Zheng Qixing <zhengqixing@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20250227075507.151331-12-zhengqixing@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions