diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2015-10-22 22:46:59 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-11-01 00:06:02 +0100 |
commit | 4c7da06f5a780bbf44ebd7547789e48536d0a823 (patch) | |
tree | a9d5a178b34760d0aece8afece29c0a11812a79a /drivers/md/persistent-data/dm-transaction-manager.h | |
parent | dm: eliminate unused "bioset" process for each bio-based DM device (diff) | |
download | linux-4c7da06f5a780bbf44ebd7547789e48536d0a823.tar.xz linux-4c7da06f5a780bbf44ebd7547789e48536d0a823.zip |
dm persistent data: eliminate unnecessary return values
dm_bm_unlock and dm_tm_unlock return an integer value but the returned
value is always 0. The calling code sometimes checks the return value
and sometimes doesn't.
Eliminate these unnecessary return values and also the checks for them.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/persistent-data/dm-transaction-manager.h')
-rw-r--r-- | drivers/md/persistent-data/dm-transaction-manager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/persistent-data/dm-transaction-manager.h b/drivers/md/persistent-data/dm-transaction-manager.h index 2e0d4d66fb1b..f3a18be68f30 100644 --- a/drivers/md/persistent-data/dm-transaction-manager.h +++ b/drivers/md/persistent-data/dm-transaction-manager.h @@ -94,7 +94,7 @@ int dm_tm_read_lock(struct dm_transaction_manager *tm, dm_block_t b, struct dm_block_validator *v, struct dm_block **result); -int dm_tm_unlock(struct dm_transaction_manager *tm, struct dm_block *b); +void dm_tm_unlock(struct dm_transaction_manager *tm, struct dm_block *b); /* * Functions for altering the reference count of a block directly. |