Skip to content

Commit 2c88607

Browse files
Xichao Zhaonamjaejeon
authored andcommitted
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 <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent 79c1587 commit 2c88607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/exfat/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int __exfat_write_inode(struct inode *inode, int sync)
2525
struct super_block *sb = inode->i_sb;
2626
struct exfat_sb_info *sbi = EXFAT_SB(sb);
2727
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);
2929
struct timespec64 ts;
3030

3131
if (inode->i_ino == EXFAT_ROOT_INO)

0 commit comments

Comments
 (0)