diff options
author | Jiangshan Yi <yijiangshan@kylinos.cn> | 2022-07-14 09:54:41 +0800 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-07-29 18:12:34 -0700 |
commit | a10c9ede9913fd54be61bbb01884e647e83dfcae (patch) | |
tree | 58b2344ab654273d2e35ab30433fea7c265a6e10 /.mailmap | |
parent | b09a7a036d2035b14636cd4c4c69518d73770f65 (diff) | |
download | lwn-a10c9ede9913fd54be61bbb01884e647e83dfcae.tar.gz lwn-a10c9ede9913fd54be61bbb01884e647e83dfcae.zip |
lib/lzo/lzo1x_compress.c: replace ternary operator with min() and min_t()
Fix the following coccicheck warning:
lib/lzo/lzo1x_compress.c:54: WARNING opportunity for min().
lib/lzo/lzo1x_compress.c:329: WARNING opportunity for min().
min() and min_t() macro is defined in include/linux/minmax.h. It avoids
multiple evaluations of the arguments when non-constant and performs
strict type-checking.
Link: https://lkml.kernel.org/r/20220714015441.1313036-1-13667453960@163.com
Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn>
Tested-by: Dave Rodgman <dave.rodgman@arm.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions