From 2a139993b40c4497536a2a0b6d826c73213b332d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 16 Mar 2017 00:34:31 +0100 Subject: [PATCH] thin: remove unneeed test for NULL In this API NULL is not valid parameter so do not check for it. --- lib/metadata/thin_manip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/metadata/thin_manip.c b/lib/metadata/thin_manip.c index d1259b430..71f9cc066 100644 --- a/lib/metadata/thin_manip.c +++ b/lib/metadata/thin_manip.c @@ -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; -- 2.43.5