summaryrefslogtreecommitdiffstats
path: root/fs/efs/inode.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-14 12:49:40 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2013-08-24 12:10:22 -0400
commit136eefa48d638cd8e57e8e2f0087f59c76863bee (patch)
tree824859a220b34845b17004f3d2eb6485d57a3b89 /fs/efs/inode.c
parenta5a1955e0c2d4d325fabdf6b09aa3f9d33e78a10 (diff)
downloadlinux-136eefa48d638cd8e57e8e2f0087f59c76863bee.tar.bz2
efs: iget_locked() doesn't return an ERR_PTR()
The iget_locked() function returns NULL on error and never an ERR_PTR. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/efs/inode.c')
-rw-r--r--fs/efs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/efs/inode.c b/fs/efs/inode.c
index f3913eb2c474..d15ccf20f1b3 100644
--- a/fs/efs/inode.c
+++ b/fs/efs/inode.c
@@ -57,7 +57,7 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
struct inode *inode;
inode = iget_locked(super, ino);
- if (IS_ERR(inode))
+ if (!inode)
return ERR_PTR(-ENOMEM);
if (!(inode->i_state & I_NEW))
return inode;