aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-20 12:29:18 +0800
committerTheodore Ts'o <tytso@mit.edu>2020-06-03 23:16:49 -0400
commit39c0ae163f3b3ae691e7cce226ba1984ef6456b1 (patch)
tree4a5656aee800ea057e0a16eaded468cb449b5e18 /fs/ext4/inode.c
parentext4: translate a few more map flags to strings in tracepoints (diff)
downloadwireguard-linux-39c0ae163f3b3ae691e7cce226ba1984ef6456b1.tar.xz
wireguard-linux-39c0ae163f3b3ae691e7cce226ba1984ef6456b1.zip
ext4: remove unnecessary comparisons to bool
Fix the following coccicheck warning: fs/ext4/extents_status.c:1057:5-28: WARNING: Comparison to bool fs/ext4/inode.c:2314:18-24: WARNING: Comparison to bool Signed-off-by: Jason Yan <yanaijie@huawei.com> Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com> Link: https://lore.kernel.org/r/20200420042918.19459-1-yanaijie@huawei.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 693a3722337a..4a3381eb1bbe 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2307,7 +2307,7 @@ static int mpage_map_and_submit_buffers(struct mpage_da_data *mpd)
* mapping, or maybe the page was submitted for IO.
* So we return to call further extent mapping.
*/
- if (err < 0 || map_bh == true)
+ if (err < 0 || map_bh)
goto out;
/* Page fully mapped - let IO run! */
err = mpage_submit_page(mpd, page);