diff options
| author | Jiangshan Yi <[email protected]> | 2022-07-14 14:33:18 +0800 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2022-07-14 12:04:15 +0200 |
| commit | 9888725d8a640d67abe6139e84ff41bafe89b11e (patch) | |
| tree | aa5bc97cb49a644933110e4b5f952d5e4d14de55 /scripts/clang-tools/gen_compile_commands.py | |
| parent | a175eca0f3d747599f1fdfac04cc9195b71ec996 (diff) | |
fs/ext2: replace ternary operator with min_t()
Fix the following coccicheck warning:
fs/ext2/super.c:1494: WARNING opportunity for min().
fs/ext2/super.c:1533: WARNING opportunity for min().
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://lore.kernel.org/r/[email protected]
Signed-off-by: Jiangshan Yi <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions