mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: remove unneeed test for NULL
In this API NULL is not valid parameter so do not check for it.
This commit is contained in:
parent
0dcb928d1e
commit
2a139993b4
@ -649,8 +649,7 @@ int update_thin_pool_params(struct cmd_context *cmd,
|
||||
return_0;
|
||||
}
|
||||
|
||||
if (zero_new_blocks &&
|
||||
(*zero_new_blocks == THIN_ZERO_UNSELECTED) &&
|
||||
if ((*zero_new_blocks == THIN_ZERO_UNSELECTED) &&
|
||||
find_config_tree_node(cmd, allocation_thin_pool_zero_CFG, profile))
|
||||
*zero_new_blocks = find_config_tree_bool(cmd, allocation_thin_pool_zero_CFG, profile)
|
||||
? THIN_ZERO_YES : THIN_ZERO_NO;
|
||||
|
Loading…
Reference in New Issue
Block a user