Skip to content

Commit 332f2b1

Browse files
committed
dm: return void from __send_empty_flush
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
1 parent e273634 commit 332f2b1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/md/dm.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ static void __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti,
13691369
}
13701370
}
13711371

1372-
static int __send_empty_flush(struct clone_info *ci)
1372+
static void __send_empty_flush(struct clone_info *ci)
13731373
{
13741374
unsigned target_nr = 0;
13751375
struct dm_target *ti;
@@ -1390,7 +1390,6 @@ static int __send_empty_flush(struct clone_info *ci)
13901390
__send_duplicate_bios(ci, ti, ti->num_flush_bios, NULL);
13911391

13921392
bio_uninit(ci->bio);
1393-
return 0;
13941393
}
13951394

13961395
static void __send_changing_extent_only(struct clone_info *ci, struct dm_target *ti,
@@ -1566,7 +1565,7 @@ static void dm_split_and_process_bio(struct mapped_device *md,
15661565
init_clone_info(&ci, md, map, bio);
15671566

15681567
if (bio->bi_opf & REQ_PREFLUSH) {
1569-
error = __send_empty_flush(&ci);
1568+
__send_empty_flush(&ci);
15701569
/* dm_io_complete submits any data associated with flush */
15711570
goto out;
15721571
}

0 commit comments

Comments
 (0)