projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bee7b2
)
btrfs-progs: annotate fallthroughs in parse_limit
author
Eric Sandeen
<sandeen@redhat.com>
Wed, 6 Nov 2013 23:15:55 +0000
(17:15 -0600)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/cmds-qgroup.c
b/cmds-qgroup.c
index 4fe776c031601abe55684604af935b7442e8ec8e..5a393bd384928864250bd42a32adbf2cf13c1adf 100644
(file)
--- a/
cmds-qgroup.c
+++ b/
cmds-qgroup.c
@@
-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;