提交 c1499a04 编写于 作者: Z ZhangXiaoxu 提交者: Mike Snitzer

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: NZhangXiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: NMike Snitzer <snitzer@redhat.com>
上级 bcd67654
...@@ -369,10 +369,6 @@ int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin, ...@@ -369,10 +369,6 @@ int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin,
*/ */
dm_tm_unlock(ll->tm, blk); dm_tm_unlock(ll->tm, blk);
continue; continue;
} else if (r < 0) {
dm_tm_unlock(ll->tm, blk);
return r;
} }
dm_tm_unlock(ll->tm, blk); dm_tm_unlock(ll->tm, blk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册