mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 23:52:17 +00:00
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) {
|
||||
case 'e':
|
||||
mult *= 1024;
|
||||
/* fallthrough */
|
||||
case 'p':
|
||||
mult *= 1024;
|
||||
/* fallthrough */
|
||||
case 't':
|
||||
mult *= 1024;
|
||||
/* fallthrough */
|
||||
case 'g':
|
||||
mult *= 1024;
|
||||
/* fallthrough */
|
||||
case 'm':
|
||||
mult *= 1024;
|
||||
/* fallthrough */
|
||||
case 'k':
|
||||
mult *= 1024;
|
||||
/* fallthrough */
|
||||
case 'b':
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user