ctladm: Fix a typo and add a FALLTHROUGH annotation

Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D42934

(cherry picked from commit e8d8354834)
This commit is contained in:
John Baldwin 2023-12-27 10:10:42 -08:00
parent 0827fecb4a
commit 96d7c770ef

View File

@ -574,10 +574,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));