diff options
| author | Jiangshan Yi <[email protected]> | 2022-08-17 02:59:28 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2022-11-29 21:10:49 +0000 |
| commit | 66267814ba0ee0732c69ca87eb1fd6eb63bf0d5f (patch) | |
| tree | 204a4c8a28740257bd95d86ff1e209d31587a65b /fs/ext4/fast_commit.c | |
| parent | ext4: check and assert if marking an no_delete evicting inode dirty (diff) | |
| download | kernel-66267814ba0ee0732c69ca87eb1fd6eb63bf0d5f.tar.gz kernel-66267814ba0ee0732c69ca87eb1fd6eb63bf0d5f.zip | |
fs/ext4: replace ternary operator with min()/max() and min_t()
Fix the following coccicheck warning:
fs/ext4/inline.c:183: WARNING opportunity for min().
fs/ext4/extents.c:2631: WARNING opportunity for max().
fs/ext4/extents.c:2632: WARNING opportunity for min().
fs/ext4/extents.c:5559: WARNING opportunity for max().
fs/ext4/super.c:6908: WARNING opportunity for min().
min()/max() 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.
Reported-by: kernel test robot <[email protected]>
Suggested-by: Lukas Czerner <[email protected]>
Signed-off-by: Jiangshan Yi <[email protected]>
Reviewed-by: Lukas Czerner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
