dm: make __send_duplicate_bios return unsigned int
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 3 Oct 2023 11:34:54 +0000 (13:34 +0200)
committerMike Snitzer <snitzer@kernel.org>
Mon, 23 Oct 2023 17:07:36 +0000 (13:07 -0400)
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 <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm.c

index ab7dd8ab51d1f87eb8cee4d4b92620c51ad4d83b..1113a8da3c472eaeb42763b25a64c82bd6891ebb 100644 (file)
@@ -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;