Skip to content

Commit 34dbaa8

Browse files
Mikulas PatockaMike Snitzer
authored andcommitted
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 <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
1 parent 18ac523 commit 34dbaa8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/md/dm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,8 +1506,8 @@ static void alloc_multiple_bios(struct bio_list *blist, struct clone_info *ci,
15061506
}
15071507
}
15081508

1509-
static int __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti,
1510-
unsigned int num_bios, unsigned int *len)
1509+
static unsigned int __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti,
1510+
unsigned int num_bios, unsigned int *len)
15111511
{
15121512
struct bio_list blist = BIO_EMPTY_LIST;
15131513
struct bio *clone;

0 commit comments

Comments
 (0)