btrfs-progs: annotate fallthroughs in parse_limit
authorEric Sandeen <sandeen@redhat.com>
Wed, 6 Nov 2013 23:15:55 +0000 (17:15 -0600)
committerChris Mason <chris.mason@fusionio.com>
Thu, 7 Nov 2013 21:10:41 +0000 (16:10 -0500)
We intentionally fall through these case statements;
just annotate it to be clear.

Resolves-Coverity-CID: 1054884
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-qgroup.c

index 4fe776c031601abe55684604af935b7442e8ec8e..5a393bd384928864250bd42a32adbf2cf13c1adf 100644 (file)
@@ -120,12 +120,15 @@ static int parse_limit(const char *p, unsigned long long *s)
        case 'T':
        case 't':
                size *= 1024;
+               /* fallthrough */
        case 'G':
        case 'g':
                size *= 1024;
+               /* fallthrough */
        case 'M':
        case 'm':
                size *= 1024;
+               /* fallthrough */
        case 'K':
        case 'k':
                size *= 1024;