src/Cedar/Command.c: remove logically dead code
found by coverity
@@ -19678,20 +19678,8 @@ UINT PsDhcpDisable(CONSOLE *c, char *cmd_name, wchar_t *str, void *param)
}
else
{
- bool ok = true;
-
t.UseDhcp = false;
- if (ok == false)
- {
- // Parameter is invalid
- ret = ERR_INVALID_PARAMETER;
- CmdPrintError(c, ret);
- FreeParamValueList(o);
- return ret;
- }
- else
- {
ret = ScSetSecureNATOption(ps->Rpc, &t);
if (ret != ERR_NO_ERROR)
@@ -19702,7 +19690,6 @@ UINT PsDhcpDisable(CONSOLE *c, char *cmd_name, wchar_t *str, void *param)
return ret;
}
}
- }
FreeParamValueList(o);
