ocfs2: fix a static checker warning
PATCH 15/108 ocfs2: fix a static checker warning
From: Gang He <[email protected]>
Subject: ocfs2: fix a static checker warning
Fix a static code checker warning:
fs/ocfs2/inode.c:179 ocfs2_iget()
warn: passing zero to 'ERR_PTR'
Fixes d56a8f32e4c6 ("ocfs2: check/fix inode block for online file check")
Signed-off-by Gang He <[email protected]>
Reviewed-by Joseph Qi <[email protected]>
Reviewed-by Eric Ren <[email protected]>
Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Junxiao Bi <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/ocfs2/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/inode.c renamed from fs/ocfs2/inode.c~ocfs2-fix-a-static-checker-warning +1 -1
@@ -136,7 +136,7 @@ struct inode *ocfs2_ilookup(struct superstruct inode *ocfs2_iget (struct ocfs2_super *osb,u64 blkno,unsigned flags,int sysfile_type) { -int rc =0 ; +int rc = -ESTALE ;struct inode *inode =NULL ;struct super_block *sb = osb->sb;struct ocfs2_find_inode_args args;
_