mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-07 09:41:29 +00:00
btrfs-progs: annotate fallthroughs in parse_limit
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>
This commit is contained in:
parent
7bee7b2f2a
commit
06ceeb209e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user