1
0
Fork 0

dm space map common: remove check for impossible sm_find_free() return value

The function sm_find_free() just returns -ENOSPC and 0.
So remove lone caller's check for some other error.

Signed-off-by: ZhangXiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
alistair/sunxi64-5.4-dsi
ZhangXiaoxu 2019-06-09 15:52:00 +08:00 committed by Mike Snitzer
parent bcd676542c
commit c1499a044d
1 changed files with 0 additions and 4 deletions

View File

@ -369,10 +369,6 @@ int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin,
*/
dm_tm_unlock(ll->tm, blk);
continue;
} else if (r < 0) {
dm_tm_unlock(ll->tm, blk);
return r;
}
dm_tm_unlock(ll->tm, blk);