From 34dbaa88cab121437d711bb7b9673c16eed4f922 Mon Sep 17 00:00:00 2001 From: Mikulas Patocka Date: Tue, 3 Oct 2023 13:34:54 +0200 Subject: [PATCH] dm: make __send_duplicate_bios return unsigned int All the callers cast the value returned by __send_duplicate_bios to unsigned int type, so we can return unsigned int as well. Signed-off-by: Mikulas Patocka Signed-off-by: Mike Snitzer --- drivers/md/dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index ab7dd8ab51d1f..1113a8da3c472 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1506,8 +1506,8 @@ static void alloc_multiple_bios(struct bio_list *blist, struct clone_info *ci, } } -static int __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti, - unsigned int num_bios, unsigned int *len) +static unsigned int __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti, + unsigned int num_bios, unsigned int *len) { struct bio_list blist = BIO_EMPTY_LIST; struct bio *clone; -- 2.30.2