mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-07 05:58:00 +03:00
cleanup: error is already logged
Function get_only_segment_using_this_lv() already prints error, no need to show more internal logic to user as an error.
This commit is contained in:
parent
73c74d582c
commit
916a68585e
@ -215,12 +215,8 @@ struct lv_segment *find_pool_seg(const struct lv_segment *seg)
|
||||
{
|
||||
struct lv_segment *pool_seg;
|
||||
|
||||
pool_seg = get_only_segment_using_this_lv(seg->lv);
|
||||
|
||||
if (!pool_seg) {
|
||||
log_error("Failed to find pool_seg for %s", seg->lv->name);
|
||||
return NULL;
|
||||
}
|
||||
if (!(pool_seg = get_only_segment_using_this_lv(seg->lv)))
|
||||
return_NULL;
|
||||
|
||||
if ((lv_is_thin_type(seg->lv) && !seg_is_pool(pool_seg))) {
|
||||
log_error("%s on %s is not a %s pool segment",
|
||||
|
Loading…
x
Reference in New Issue
Block a user