diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-07-11 13:19:13 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-07-11 13:19:13 -0400 |
commit | 4da3c6463ef6759fb50d12c8652bc29c5c1730a4 (patch) | |
tree | 7fc1d3f228844799f20db258e36c9b2976c73dc4 /fs/gfs2/dir.c | |
parent | b2a580d87b33816aa9b50268f70666368e12f7df (diff) |
[GFS2] Fix a coupls of warnings in dir.c
Fix a couple of compiler warnings in dir.c caused by
potentially uninitialised variables.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/dir.c')
-rw-r--r-- | fs/gfs2/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index 13d3709e0c0b..e96b5322c843 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c | |||
@@ -936,7 +936,7 @@ static int dir_split_leaf(struct inode *inode, const struct qstr *name) | |||
936 | struct gfs2_inode *dip = GFS2_I(inode); | 936 | struct gfs2_inode *dip = GFS2_I(inode); |
937 | struct buffer_head *nbh, *obh, *dibh; | 937 | struct buffer_head *nbh, *obh, *dibh; |
938 | struct gfs2_leaf *nleaf, *oleaf; | 938 | struct gfs2_leaf *nleaf, *oleaf; |
939 | struct gfs2_dirent *dent, *prev = NULL, *next = NULL, *new; | 939 | struct gfs2_dirent *dent = NULL, *prev = NULL, *next = NULL, *new; |
940 | uint32_t start, len, half_len, divider; | 940 | uint32_t start, len, half_len, divider; |
941 | uint64_t bn, *lp, leaf_no; | 941 | uint64_t bn, *lp, leaf_no; |
942 | uint32_t index; | 942 | uint32_t index; |
@@ -1356,7 +1356,7 @@ static int dir_e_read(struct inode *inode, uint64_t *offset, void *opaque, | |||
1356 | uint64_t *lp; | 1356 | uint64_t *lp; |
1357 | int copied = 0; | 1357 | int copied = 0; |
1358 | int error = 0; | 1358 | int error = 0; |
1359 | unsigned depth; | 1359 | unsigned depth = 0; |
1360 | 1360 | ||
1361 | hsize = 1 << dip->i_di.di_depth; | 1361 | hsize = 1 << dip->i_di.di_depth; |
1362 | if (hsize * sizeof(uint64_t) != dip->i_di.di_size) { | 1362 | if (hsize * sizeof(uint64_t) != dip->i_di.di_size) { |