From 7bee7b2f2a16b5af04bd4b3f967eefe81cedbac1 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Wed, 6 Nov 2013 17:15:54 -0600 Subject: [PATCH] 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 Signed-off-by: Chris Mason --- utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils.c b/utils.c index 704b371e..f4990231 100644 --- a/utils.c +++ b/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: