diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-14 05:49:40 -0400 |
---|---|---|
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) |
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) | |||
57 | struct inode *inode; | 57 | struct inode *inode; |
58 | 58 | ||
59 | inode = iget_locked(super, ino); | 59 | inode = iget_locked(super, ino); |
60 | if (IS_ERR(inode)) | 60 | if (!inode) |
61 | return ERR_PTR(-ENOMEM); | 61 | return ERR_PTR(-ENOMEM); |
62 | if (!(inode->i_state & I_NEW)) | 62 | if (!(inode->i_state & I_NEW)) |
63 | return inode; | 63 | return inode; |