]> git.baikalelectronics.ru Git - kernel.git/commitdiff
hfs: 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/hfs/bnode.c

index c0a73a6ffb28bd9c6201e3469f5e8314924ff336..c83fd0e8404d351ee5ada8abc8cde614a0c8c566 100644 (file)
@@ -296,10 +296,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;
        }