Skip to content

Commit

Permalink
lib/xz: add comments for the intentionally missing break statements
Browse files Browse the repository at this point in the history
Signed-off-by: Lasse Collin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Larhzu authored and torvalds committed Jun 4, 2014
1 parent 0046dd9 commit 84d517f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/xz/xz_dec_lzma2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,8 @@ XZ_EXTERN enum xz_ret xz_dec_lzma2_run(struct xz_dec_lzma2 *s,

s->lzma2.sequence = SEQ_LZMA_PREPARE;

/* Fall through */

case SEQ_LZMA_PREPARE:
if (s->lzma2.compressed < RC_INIT_BYTES)
return XZ_DATA_ERROR;
Expand All @@ -1053,6 +1055,8 @@ XZ_EXTERN enum xz_ret xz_dec_lzma2_run(struct xz_dec_lzma2 *s,
s->lzma2.compressed -= RC_INIT_BYTES;
s->lzma2.sequence = SEQ_LZMA_RUN;

/* Fall through */

case SEQ_LZMA_RUN:
/*
* Set dictionary limit to indicate how much we want
Expand Down

0 comments on commit 84d517f

Please sign in to comment.