History

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

YueHaibing committed 5 years ago

Commit 21e4e151 parent fa236c21 file · +1 −3Browse files

Unified · Split

fs/reiserfs/inode.c+1−3
@@ -2584,9 +2584,7 @@ static int reiserfs_write_full_page(struct page *page, · 2583 unmodified lines
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