]> git.baikalelectronics.ru Git - kernel.git/commitdiff
hfsplus: Remove check for PageError
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 17 May 2022 22:12:25 +0000 (18:12 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 29 Jun 2022 12:51:06 +0000 (08:51 -0400)
If read_mapping_page() encounters an error, it returns an errno, not a
page with PageError set, so this is dead code.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/hfsplus/bnode.c

index 177fae4e6581439bb7748ffdba99f91095da3bcc..a5ab00e5422030364c4aae4b229ac92928445dd9 100644 (file)
@@ -447,10 +447,6 @@ static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid)
                page = read_mapping_page(mapping, block, NULL);
                if (IS_ERR(page))
                        goto fail;
-               if (PageError(page)) {
-                       put_page(page);
-                       goto fail;
-               }
                node->page[i] = page;
        }