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) ...@@ -276,9 +276,8 @@ mcf_param_show(struct cli *cli, const char * const *av, void *priv)
pp = pl->spec; pp = pl->spec;
if (lfmt && show != NULL && strcmp(pp->name, show)) if (lfmt && show != NULL && strcmp(pp->name, show))
continue; continue;
if (pp->func == tweak_alias && show == NULL) if (pp->func == tweak_alias &&
continue; (show == NULL || strcmp(pp->name, show)))
if (pp->func == tweak_alias && strcmp(pp->name, show))
continue; continue;
n++; n++;
...@@ -406,9 +405,8 @@ mcf_param_show_json(struct cli *cli, const char * const *av, void *priv) ...@@ -406,9 +405,8 @@ mcf_param_show_json(struct cli *cli, const char * const *av, void *priv)
pp = pl->spec; pp = pl->spec;
if (show != NULL && strcmp(pp->name, show) != 0) if (show != NULL && strcmp(pp->name, show) != 0)
continue; continue;
if (pp->func == tweak_alias && show == NULL) if (pp->func == tweak_alias &&
continue; (show == NULL || strcmp(pp->name, show)))
if (pp->func == tweak_alias && strcmp(pp->name, show))
continue; continue;
n++; 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