diff options
| author | Xichao Zhao <zhao.xichao@vivo.com> | 2025-08-18 17:28:15 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2025-09-30 13:34:43 +0900 |
| commit | 2c88607ac82d1e375e4c85577fe54e69b0be43a9 (patch) | |
| tree | 2472f2b4f093cc0cee3e83ea5feead0e8b46015c | |
| parent | 79c1587b6cda74deb0c86fc7ba194b92958c793c (diff) | |
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>
| -rw-r--r-- | fs/exfat/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c index c10844e1e16c..f9501c3a3666 100644 --- a/fs/exfat/inode.c +++ b/fs/exfat/inode.c @@ -25,7 +25,7 @@ int __exfat_write_inode(struct inode *inode, int sync) struct super_block *sb = inode->i_sb; struct exfat_sb_info *sbi = EXFAT_SB(sb); struct exfat_inode_info *ei = EXFAT_I(inode); - bool is_dir = (ei->type == TYPE_DIR) ? true : false; + bool is_dir = (ei->type == TYPE_DIR); struct timespec64 ts; if (inode->i_ino == EXFAT_ROOT_INO) |
