summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2021-05-23 11:02:58 +0200
committerJan Kara <jack@suse.cz>2021-05-24 11:00:56 +0200
commit21e4e15a846f86643a43c291cbed5dca3639fc2b (patch)
tree9286c4f18343e4ae9ac6485819736fa864d382c8 /fs/reiserfs
parentudf: Fix NULL pointer dereference in udf_symlink function (diff)
downloadlinux-21e4e15a846f86643a43c291cbed5dca3639fc2b.tar.xz
linux-21e4e15a846f86643a43c291cbed5dca3639fc2b.zip
reiserfs: Remove unneed check in reiserfs_write_full_page()
Condition !A || A && B is equivalent to !A || B. Generated by: scripts/coccinelle/misc/excluded_middle.cocci Link: https://lore.kernel.org/r/20210523090258.27696-1-yuehaibing@huawei.com Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/reiserfs')
-rw-r--r--fs/reiserfs/inode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
index 780bb90c1804..f49b72ccac4c 100644
--- a/fs/reiserfs/inode.c
+++ b/fs/reiserfs/inode.c
@@ -2584,9 +2584,7 @@ static int reiserfs_write_full_page(struct page *page,
clear_buffer_dirty(bh);
set_buffer_uptodate(bh);
} else if ((checked || buffer_dirty(bh)) &&
- (!buffer_mapped(bh) || (buffer_mapped(bh)
- && bh->b_blocknr ==
- 0))) {
+ (!buffer_mapped(bh) || bh->b_blocknr == 0)) {
/*
* not mapped yet, or it points to a direct item, search
* the btree for the mapping info, and log any direct