mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 05:45:20 +00:00
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>
This commit is contained in:
parent
0e00fa5f83
commit
59fc647405
@ -132,12 +132,6 @@ static int afs_mntpt_set_params(struct fs_context *fc, struct dentry *mntpt)
|
|||||||
if (IS_ERR(page))
|
if (IS_ERR(page))
|
||||||
return PTR_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);
|
buf = kmap(page);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
if (buf[size - 1] == '.')
|
if (buf[size - 1] == '.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user