Skip to content

Commit 21e4e15

Browse files
YueHaibingjankara
authored andcommitted
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/[email protected] Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent fa236c2 commit 21e4e15

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/reiserfs/inode.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,9 +2584,7 @@ static int reiserfs_write_full_page(struct page *page,
25842584
clear_buffer_dirty(bh);
25852585
set_buffer_uptodate(bh);
25862586
} else if ((checked || buffer_dirty(bh)) &&
2587-
(!buffer_mapped(bh) || (buffer_mapped(bh)
2588-
&& bh->b_blocknr ==
2589-
0))) {
2587+
(!buffer_mapped(bh) || bh->b_blocknr == 0)) {
25902588
/*
25912589
* not mapped yet, or it points to a direct item, search
25922590
* the btree for the mapping info, and log any direct

0 commit comments

Comments
 (0)