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:
Eric Sandeen 2013-11-06 17:15:54 -06:00 committed by Chris Mason
parent b68477aee1
commit 7bee7b2f2a
1 changed files with 6 additions and 0 deletions

View File

@ -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: