Convert ERR_PTR(PTR_ERR(p)) instances to ERR_CAST(p)
Convert instances of ERR_PTR(PTR_ERR(p)) to ERR_CAST(p) using: perl -spi -e 's/ERR_PTR[(]PTR_ERR[(](.*)[)][)]/ERR_CAST(\1)/' `grep -rl 'ERR_PTR[(]*PTR_ERR' fs crypto net security` Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
d1bc8e9544
commit
e231c2ee64
@ -155,7 +155,7 @@ static struct dentry *get_xa_file_dentry(const struct inode *inode,
|
||||
|
||||
xadir = open_xa_dir(inode, flags);
|
||||
if (IS_ERR(xadir)) {
|
||||
return ERR_PTR(PTR_ERR(xadir));
|
||||
return ERR_CAST(xadir);
|
||||
} else if (xadir && !xadir->d_inode) {
|
||||
dput(xadir);
|
||||
return ERR_PTR(-ENODATA);
|
||||
@ -164,7 +164,7 @@ static struct dentry *get_xa_file_dentry(const struct inode *inode,
|
||||
xafile = lookup_one_len(name, xadir, strlen(name));
|
||||
if (IS_ERR(xafile)) {
|
||||
dput(xadir);
|
||||
return ERR_PTR(PTR_ERR(xafile));
|
||||
return ERR_CAST(xafile);
|
||||
}
|
||||
|
||||
if (xafile->d_inode) { /* file exists */
|
||||
|
Reference in New Issue
Block a user