Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

exfat: drop redundant conversion to bool

The result of integer comparison already evaluates to bool. No need for
explicit conversion.

No functional impact.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>

authored by

Xichao Zhao and committed by
Namjae Jeon
2c88607a 79c1587b

+1 -1
+1 -1
fs/exfat/inode.c
··· 25 25 struct super_block *sb = inode->i_sb; 26 26 struct exfat_sb_info *sbi = EXFAT_SB(sb); 27 27 struct exfat_inode_info *ei = EXFAT_I(inode); 28 - bool is_dir = (ei->type == TYPE_DIR) ? true : false; 28 + bool is_dir = (ei->type == TYPE_DIR); 29 29 struct timespec64 ts; 30 30 31 31 if (inode->i_ino == EXFAT_ROOT_INO)