Commit 5e6c7075 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Restructure to make it easier to understand for FlexeLint

parent 523aa3c7
......@@ -276,9 +276,8 @@ mcf_param_show(struct cli *cli, const char * const *av, void *priv)
pp = pl->spec;
if (lfmt && show != NULL && strcmp(pp->name, show))
continue;
if (pp->func == tweak_alias && show == NULL)
continue;
if (pp->func == tweak_alias && strcmp(pp->name, show))
if (pp->func == tweak_alias &&
(show == NULL || strcmp(pp->name, show)))
continue;
n++;
......@@ -406,9 +405,8 @@ mcf_param_show_json(struct cli *cli, const char * const *av, void *priv)
pp = pl->spec;
if (show != NULL && strcmp(pp->name, show) != 0)
continue;
if (pp->func == tweak_alias && show == NULL)
continue;
if (pp->func == tweak_alias && strcmp(pp->name, show))
if (pp->func == tweak_alias &&
(show == NULL || strcmp(pp->name, show)))
continue;
n++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment