Skip to content

Commit

Permalink
lib/lz4/lz4_decompress.c: document deliberate use of `&'
Browse files Browse the repository at this point in the history
This operation was intentional, but tools such as smatch will warn that it
might not have been.

Signed-off-by: Andrew Morton <[email protected]>
Cc: Yann Collet <[email protected]>
Cc: Vasily Averin <[email protected]>
Cc: Gao Xiang <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
Signed-off-by: engstk <[email protected]>
  • Loading branch information
JoePerches authored and engstk committed Jul 18, 2022
1 parent 070a874 commit f0d0ac3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/lz4/lz4_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ static FORCE_INLINE int LZ4_decompress_generic(
* space in the output for those 18 bytes earlier, upon
* entering the shortcut (in other words, there is a
* combined check for both stages).
*
* The & in the likely() below is intentionally not && so that
* some compilers can produce better parallelized runtime code
*/
if ((endOnInput ? length != RUN_MASK : length <= 8)
/*
Expand Down

0 comments on commit f0d0ac3

Please sign in to comment.