diff options
| author | Jiangshan Yi <[email protected]> | 2022-07-14 01:54:41 +0000 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-07-30 01:12:34 +0000 |
| commit | a10c9ede9913fd54be61bbb01884e647e83dfcae (patch) | |
| tree | 58b2344ab654273d2e35ab30433fea7c265a6e10 /fs/proc/root.c | |
| parent | squashfs: support reading fragments in readahead call (diff) | |
| download | kernel-a10c9ede9913fd54be61bbb01884e647e83dfcae.tar.gz kernel-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/[email protected]
Signed-off-by: Jiangshan Yi <[email protected]>
Tested-by: Dave Rodgman <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'fs/proc/root.c')
0 files changed, 0 insertions, 0 deletions
