mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-01 09:47:48 +03:00
pool: drop duplicated sign test
Avoid duplicate testing of '-' sign. Already checked with arg_from_list_is_negative().
This commit is contained in:
parent
acfc82ae29
commit
8c72878cf2
@ -1243,11 +1243,6 @@ int get_pool_params(struct cmd_context *cmd,
|
||||
}
|
||||
|
||||
if (arg_is_set(cmd, poolmetadatasize_ARG)) {
|
||||
if (arg_sign_value(cmd, poolmetadatasize_ARG, SIGN_NONE) == SIGN_MINUS) {
|
||||
log_error("Negative pool metadata size is invalid.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (arg_is_set(cmd, poolmetadata_ARG)) {
|
||||
log_error("Please specify either metadata logical volume or its size.");
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user