btrfs-progs: annotate fallthroughs in parse_size
We intentionally fall through these case statements; just annotate it to be clear. Resolves-Coverity-CID: 1054887 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
b68477aee1
commit
7bee7b2f2a
6
utils.c
6
utils.c
|
@ -1522,16 +1522,22 @@ u64 parse_size(char *s)
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'e':
|
case 'e':
|
||||||
mult *= 1024;
|
mult *= 1024;
|
||||||
|
/* fallthrough */
|
||||||
case 'p':
|
case 'p':
|
||||||
mult *= 1024;
|
mult *= 1024;
|
||||||
|
/* fallthrough */
|
||||||
case 't':
|
case 't':
|
||||||
mult *= 1024;
|
mult *= 1024;
|
||||||
|
/* fallthrough */
|
||||||
case 'g':
|
case 'g':
|
||||||
mult *= 1024;
|
mult *= 1024;
|
||||||
|
/* fallthrough */
|
||||||
case 'm':
|
case 'm':
|
||||||
mult *= 1024;
|
mult *= 1024;
|
||||||
|
/* fallthrough */
|
||||||
case 'k':
|
case 'k':
|
||||||
mult *= 1024;
|
mult *= 1024;
|
||||||
|
/* fallthrough */
|
||||||
case 'b':
|
case 'b':
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue