summaryrefslogtreecommitdiffstats
path: root/fs/efs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-14 11:49:40 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-08-24 18:10:22 +0200
commit136eefa48d638cd8e57e8e2f0087f59c76863bee (patch)
tree824859a220b34845b17004f3d2eb6485d57a3b89 /fs/efs
parentproc: kill the extra proc_readfd_common()->dir_emit_dots() (diff)
downloadlinux-136eefa48d638cd8e57e8e2f0087f59c76863bee.tar.xz
linux-136eefa48d638cd8e57e8e2f0087f59c76863bee.zip
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')
-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;