diff options
author | ZhangXiaoxu <zhangxiaoxu5@huawei.com> | 2019-06-09 15:52:00 +0800 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2019-08-26 15:39:53 -0400 |
commit | c1499a044d7c2bbd9ea3d9c17e17f16595ae6d69 (patch) | |
tree | c7fc52b45625613a02ed737996e739f4063c9001 /drivers/md | |
parent | bcd676542cdd44b3a91e0b695cc1d7a1d35679cd (diff) | |
download | linux-c1499a044d7c2bbd9ea3d9c17e17f16595ae6d69.tar.bz2 |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/persistent-data/dm-space-map-common.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/md/persistent-data/dm-space-map-common.c b/drivers/md/persistent-data/dm-space-map-common.c index b8a62188f6be..bd68f6fef694 100644 --- a/drivers/md/persistent-data/dm-space-map-common.c +++ b/drivers/md/persistent-data/dm-space-map-common.c @@ -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); |