fs/jfs: replace ternary operator with min_t()
authorJiangshan Yi <yijiangshan@kylinos.cn>
Thu, 14 Jul 2022 02:56:56 +0000 (10:56 +0800)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Tue, 18 Oct 2022 13:50:26 +0000 (08:50 -0500)
commit73c6da327ff17a07a9260b0ff1f36e13665ac63d
treef76934495c30b99ca2a94685e1ad884228ce4593
parent898f706695682b9954f280d95e49fa86ffa55d08
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: Jiangshan Yi <yijiangshan@kylinos.cn>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/super.c