Add FALLTHROUGH comments to appease Coverity.
CID: 1017862-1017864, 1017866-1017868 MFC after: 2 weeks
This commit is contained in:
parent
638e0274e4
commit
970a174f3b
@ -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':
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user