Fix two errors reported by PVS Studio: V646 Consider inspecting the

application's logic.  It's possible that 'else' keyword is missing.

Reviewed by:	gallatin, np, pfg
Approved by:	pfg
Differential Revision:	https://reviews.freebsd.org/D20396
This commit is contained in:
Alexey Dokuchaev 2019-05-26 12:41:03 +00:00
parent d086d41363
commit 0a16ee7544
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ int ct_set_clk (ct_chan_t *c, int clk)
if (c->mode == M_E1) {
ct_setup_e1 (c->board);
return 0;
} if (c->mode == M_G703) {
} else if (c->mode == M_G703) {
ct_setup_g703 (c->board);
return 0;
} else

View File

@ -9709,7 +9709,7 @@ set_offload_policy(struct adapter *sc, struct t4_offload_policy *uop)
/* Delete installed policies. */
op = NULL;
goto set_policy;
} if (uop->nrules > 256) { /* arbitrary */
} else if (uop->nrules > 256) { /* arbitrary */
return (E2BIG);
}