diff --git a/sys/dev/ctau/ctddk.c b/sys/dev/ctau/ctddk.c index cd83311ad52d..bab8a5fd6231 100644 --- a/sys/dev/ctau/ctddk.c +++ b/sys/dev/ctau/ctddk.c @@ -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 diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index dab4852966da..3e92d230bf9b 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -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); }