[linux-kernel] Fix clang-format edge case with goto labels

This commit is contained in:
Nick Terrell 2017-05-25 13:56:46 -07:00
parent 5d62c16ff5
commit e63fff9b97
2 changed files with 16 additions and 14 deletions

View File

@ -816,7 +816,8 @@ ZSTD_STATIC size_t ZSTD_compressSequences(ZSTD_CCtx *zc, void *dst, size_t dstCa
} }
/* check compressibility */ /* check compressibility */
_check_compressibility : { _check_compressibility:
{
size_t const minGain = ZSTD_minGain(srcSize); size_t const minGain = ZSTD_minGain(srcSize);
size_t const maxCSize = srcSize - minGain; size_t const maxCSize = srcSize - minGain;
if ((size_t)(op - ostart) >= maxCSize) { if ((size_t)(op - ostart) >= maxCSize) {
@ -1990,7 +1991,8 @@ void ZSTD_compressBlock_lazy_generic(ZSTD_CCtx *ctx, const void *src, size_t src
} }
/* store sequence */ /* store sequence */
_storeSequence : { _storeSequence:
{
size_t const litLength = start - anchor; size_t const litLength = start - anchor;
ZSTD_storeSeq(seqStorePtr, litLength, anchor, (U32)offset, matchLength - MINMATCH); ZSTD_storeSeq(seqStorePtr, litLength, anchor, (U32)offset, matchLength - MINMATCH);
anchor = ip = start + matchLength; anchor = ip = start + matchLength;