Skip to content
Commit 73c6da32 authored by Jiangshan Yi's avatar Jiangshan Yi Committed by Dave Kleikamp
Browse files

fs/jfs: replace ternary operator with min_t()



Fix the following coccicheck warning:

fs/jfs/super.c:748: WARNING opportunity for min().
fs/jfs/super.c:788: 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.

Signed-off-by: default avatarJiangshan Yi <yijiangshan@kylinos.cn>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
parent 898f7066
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment