From: Lasse Collin Date: Thu, 22 May 2014 00:43:38 +0000 (+1000) Subject: lib/xz: add comments for the intentionally missing break statements X-Git-Tag: next-20140530~2^2~169 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fc0d9ba39e1aeb9071a5111c74d5f53ca85a79b5;p=karo-tx-linux.git lib/xz: add comments for the intentionally missing break statements Signed-off-by: Lasse Collin Signed-off-by: Andrew Morton --- diff --git a/lib/xz/xz_dec_lzma2.c b/lib/xz/xz_dec_lzma2.c index a6cdc969ea42..08c3c8049998 100644 --- a/lib/xz/xz_dec_lzma2.c +++ b/lib/xz/xz_dec_lzma2.c @@ -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; @@ -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