diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index c416575aa..002af05e7 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -640,8 +640,7 @@ static int _process_config(struct cmd_context *cmd) if (!strcmp(cmd->stripe_filler, "/dev/ioerror") && stat(cmd->stripe_filler, &st)) cmd->stripe_filler = "error"; - - if (strcmp(cmd->stripe_filler, "error")) { + else if (strcmp(cmd->stripe_filler, "error")) { if (stat(cmd->stripe_filler, &st)) { log_warn("WARNING: activation/missing_stripe_filler = \"%s\" " "is invalid,", cmd->stripe_filler);