]> xenbits.xensource.com Git - xen.git/commitdiff
common/xz: add comments for the intentionally missing break statements
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 5 Feb 2015 13:01:09 +0000 (14:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 5 Feb 2015 13:01:09 +0000 (14:01 +0100)
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
[Linux commit 84d517f3e56f7d0d305c14a701cee8f7372ebe1e]
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: IAn Campbell <ian.campbell@citrix.com>
xen/common/xz/dec_lzma2.c

index 779221dfa5321b3faf7702527e73bb4938b1f4cc..44fe79bc308ece83d4c107f994755e2575016634 100644 (file)
@@ -1043,6 +1043,8 @@ XZ_EXTERN enum xz_ret INIT 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;
@@ -1053,6 +1055,8 @@ XZ_EXTERN enum xz_ret INIT 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