aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorakpm@linux-foundation.org <akpm@linux-foundation.org>2007-06-08 19:42:14 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2007-07-09 03:23:29 -0400
commit037bcbb7564e35aef937c54799550cd27735aac6 (patch)
tree8155f5365683068480b1cb61bfcaa9679e8431b8 /fs/gfs2/inode.c
parentc8cdf479377462315d6b4f56379f8ac989b0ef29 (diff)
[GFS2] gfs2_lookupi() uninitialised var fix
fs/gfs2/inode.c: In function 'gfs2_lookupi': fs/gfs2/inode.c:392: warning: 'error' may be used uninitialized in this function Looks like a real bug to me. Cc: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index cacdb0dfe577..366235d6a5b5 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -389,7 +389,7 @@ struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
389 struct super_block *sb = dir->i_sb; 389 struct super_block *sb = dir->i_sb;
390 struct gfs2_inode *dip = GFS2_I(dir); 390 struct gfs2_inode *dip = GFS2_I(dir);
391 struct gfs2_holder d_gh; 391 struct gfs2_holder d_gh;
392 int error; 392 int error = 0;
393 struct inode *inode = NULL; 393 struct inode *inode = NULL;
394 int unlock = 0; 394 int unlock = 0;
395 395