Skip to content

Commit

Permalink
ctladm: Fix a typo and add a FALLTHROUGH annotation
Browse files Browse the repository at this point in the history
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D42934
  • Loading branch information
bsdjhb committed Mar 13, 2024
2 parents 70ab982 + e8d8354 commit d11b857
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr.sbin/ctladm/ctladm.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,10 +573,11 @@ cctl_port(int fd, int argc, char **argv, char *combinedopt)
}
case CCTL_PORT_MODE_REMOVE:
if (targ_port == -1) {
warnx("%s: -r require -p", __func__);
warnx("%s: -r requires -p", __func__);
retval = 1;
goto bailout;
}
/* FALLTHROUGH */
case CCTL_PORT_MODE_CREATE: {
bzero(&req, sizeof(req));
strlcpy(req.driver, driver, sizeof(req.driver));
Expand Down

0 comments on commit d11b857

Please sign in to comment.