projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert ERR_PTR(PTR_ERR(p)) instances to ERR_CAST(p)
[firefly-linux-kernel-4.4.55.git]
/
fs
/
gfs2
/
ops_inode.c
diff --git
a/fs/gfs2/ops_inode.c
b/fs/gfs2/ops_inode.c
index 9f71372c1757b04f17c0295b01a4a6fc17398cde..e87412902bed76313428bdeb7d7c3e9e1f476d59 100644
(file)
--- a/
fs/gfs2/ops_inode.c
+++ b/
fs/gfs2/ops_inode.c
@@
-111,7
+111,7
@@
static struct dentry *gfs2_lookup(struct inode *dir, struct dentry *dentry,
inode = gfs2_lookupi(dir, &dentry->d_name, 0, nd);
if (inode && IS_ERR(inode))
- return ERR_
PTR(PTR_ERR(inode)
);
+ return ERR_
CAST(inode
);
if (inode) {
struct gfs2_glock *gl = GFS2_I(inode)->i_gl;