Add FALLTHROUGH comments to appease Coverity.

CID:		1017862-1017864, 1017866-1017868
MFC after:	2 weeks
This commit is contained in:
Mark Johnston 2018-10-25 15:43:21 +00:00
parent 638e0274e4
commit 970a174f3b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339731
2 changed files with 10 additions and 8 deletions

View file

@ -839,10 +839,13 @@ getenv_quad(const char *name, quad_t *data)
switch (vtp[0]) {
case 't': case 'T':
iv *= 1024;
/* FALLTHROUGH */
case 'g': case 'G':
iv *= 1024;
/* FALLTHROUGH */
case 'm': case 'M':
iv *= 1024;
/* FALLTHROUGH */
case 'k': case 'K':
iv *= 1024;
case '\0':

View file

@ -1647,17 +1647,16 @@ vfs_getopt_size(struct vfsoptlist *opts, const char *name, off_t *value)
if (iv < 0)
return (EINVAL);
switch (vtp[0]) {
case 't':
case 'T':
case 't': case 'T':
iv *= 1024;
case 'g':
case 'G':
/* FALLTHROUGH */
case 'g': case 'G':
iv *= 1024;
case 'm':
case 'M':
/* FALLTHROUGH */
case 'm': case 'M':
iv *= 1024;
case 'k':
case 'K':
/* FALLTHROUGH */
case 'k': case 'K':
iv *= 1024;
case '\0':
break;