diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-14 12:49:40 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-08-24 12:10:22 -0400 |
commit | 136eefa48d638cd8e57e8e2f0087f59c76863bee (patch) | |
tree | 824859a220b34845b17004f3d2eb6485d57a3b89 /fs/efs | |
parent | a5a1955e0c2d4d325fabdf6b09aa3f9d33e78a10 (diff) | |
download | linux-next-136eefa48d638cd8e57e8e2f0087f59c76863bee.tar.gz |
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.c | 2 |
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; |