mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
dbba42d8a9
commit
4c7da06f5a
13 changed files with 67 additions and 82 deletions
|
@ -233,9 +233,9 @@ static int get_ablock(struct dm_array_info *info, dm_block_t b,
|
|||
/*
|
||||
* Unlocks an array block.
|
||||
*/
|
||||
static int unlock_ablock(struct dm_array_info *info, struct dm_block *block)
|
||||
static void unlock_ablock(struct dm_array_info *info, struct dm_block *block)
|
||||
{
|
||||
return dm_tm_unlock(info->btree_info.tm, block);
|
||||
dm_tm_unlock(info->btree_info.tm, block);
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue