Skip to content

Commit b39b732

Browse files
mauelshaMike Snitzer
authored andcommitted
dm: avoid void function return statements
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent ba287d7 commit b39b732

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

drivers/md/dm-io-rewind.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ static void dm_bio_integrity_rewind(struct bio *bio, unsigned int bytes_done)
6868
static inline void dm_bio_integrity_rewind(struct bio *bio,
6969
unsigned int bytes_done)
7070
{
71-
return;
7271
}
7372

7473
#endif
@@ -104,7 +103,6 @@ static void dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes)
104103

105104
static inline void dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes)
106105
{
107-
return;
108106
}
109107

110108
#endif

drivers/md/dm-log-userspace-base.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,6 @@ static void userspace_dtr(struct dm_dirty_log *log)
346346

347347
kfree(lc->usr_argv_str);
348348
kfree(lc);
349-
350-
return;
351349
}
352350

353351
static int userspace_presuspend(struct dm_dirty_log *log)
@@ -661,8 +659,6 @@ static void userspace_mark_region(struct dm_dirty_log *log, region_t region)
661659
fe->region = region;
662660
list_add(&fe->list, &lc->mark_list);
663661
spin_unlock_irqrestore(&lc->flush_lock, flags);
664-
665-
return;
666662
}
667663

668664
/*
@@ -698,8 +694,6 @@ static void userspace_clear_region(struct dm_dirty_log *log, region_t region)
698694
fe->region = region;
699695
list_add(&fe->list, &lc->clear_list);
700696
spin_unlock_irqrestore(&lc->flush_lock, flags);
701-
702-
return;
703697
}
704698

705699
/*
@@ -756,7 +750,6 @@ static void userspace_set_region_sync(struct dm_dirty_log *log,
756750
* It would be nice to be able to report failures.
757751
* However, it is easy enough to detect and resolve.
758752
*/
759-
return;
760753
}
761754

762755
/*
@@ -927,7 +920,6 @@ static void __exit userspace_dirty_log_exit(void)
927920
kmem_cache_destroy(_flush_entry_cache);
928921

929922
DMINFO("version " DM_LOG_USERSPACE_VSN " unloaded");
930-
return;
931923
}
932924

933925
module_init(userspace_dirty_log_init);

drivers/md/dm-zoned-target.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,6 @@ static void dmz_status(struct dm_target *ti, status_type_t type,
11191119
*result = '\0';
11201120
break;
11211121
}
1122-
return;
11231122
}
11241123

11251124
static int dmz_message(struct dm_target *ti, unsigned int argc, char **argv,

0 commit comments

Comments
 (0)