Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1499a04 authored by ZhangXiaoxu's avatar ZhangXiaoxu Committed by Mike Snitzer
Browse files

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: default avatarZhangXiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent bcd67654
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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);