diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-13 14:53:02 -0400 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-06-26 09:47:14 -0400 |
commit | a7a156fe73d0fad0af5d5348683246b5c5e9eaee (patch) | |
tree | 7acf9a8284aaecfaf58ef9d27dbddebe12f2bea9 /fs/afs | |
parent | 3eebaac433e2a6905e76d60b38ee67e72d7078eb (diff) | |
download | linux-next-a7a156fe73d0fad0af5d5348683246b5c5e9eaee.tar.gz |
afs: Remove check of PageError
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>
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/mntpt.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c index bbb2c210d139..97f50e9fd9eb 100644 --- a/fs/afs/mntpt.c +++ b/fs/afs/mntpt.c @@ -132,12 +132,6 @@ static int afs_mntpt_set_params(struct fs_context *fc, struct dentry *mntpt) if (IS_ERR(page)) return PTR_ERR(page); - if (PageError(page)) { - ret = afs_bad(AFS_FS_I(d_inode(mntpt)), afs_file_error_mntpt); - put_page(page); - return ret; - } - buf = kmap(page); ret = -EINVAL; if (buf[size - 1] == '.') |