mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
fa236c2b2d
commit
21e4e15a84
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user