mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 02:06:37 +00:00
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:
parent
0827fecb4a
commit
96d7c770ef
|
@ -574,10 +574,11 @@ cctl_port(int fd, int argc, char **argv, char *combinedopt)
|
||||||
}
|
}
|
||||||
case CCTL_PORT_MODE_REMOVE:
|
case CCTL_PORT_MODE_REMOVE:
|
||||||
if (targ_port == -1) {
|
if (targ_port == -1) {
|
||||||
warnx("%s: -r require -p", __func__);
|
warnx("%s: -r requires -p", __func__);
|
||||||
retval = 1;
|
retval = 1;
|
||||||
goto bailout;
|
goto bailout;
|
||||||
}
|
}
|
||||||
|
/* FALLTHROUGH */
|
||||||
case CCTL_PORT_MODE_CREATE: {
|
case CCTL_PORT_MODE_CREATE: {
|
||||||
bzero(&req, sizeof(req));
|
bzero(&req, sizeof(req));
|
||||||
strlcpy(req.driver, driver, sizeof(req.driver));
|
strlcpy(req.driver, driver, sizeof(req.driver));
|
||||||
|
|
Loading…
Reference in a new issue