aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2010-08-03 15:19:30 -0400
committerBob Copeland <me@bobcopeland.com>2010-08-08 12:02:05 -0400
commitffc18879903e55487bc5ac3c774b99a07de06029 (patch)
tree71a46da8e8aa19cce1646d380c09fa6e32c50756 /fs
parent8800a044c71a128633cf3febaf4780531a991334 (diff)
omfs: fix uninitialized variable warning
quiet the warning: fs/omfs/file.c: In function 'omfs_get_block': fs/omfs/file.c:225: warning: 'new_block' may be used uninitialized in this function new_block is used properly by the call to omfs_grow_extent() Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Bob Copeland <me@bobcopeland.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/omfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/omfs/file.c b/fs/omfs/file.c
index 76bc21b91a8..d821d468e5a 100644
--- a/fs/omfs/file.c
+++ b/fs/omfs/file.c
@@ -222,7 +222,7 @@ static int omfs_get_block(struct inode *inode, sector_t block,
222 struct buffer_head *bh; 222 struct buffer_head *bh;
223 sector_t next, offset; 223 sector_t next, offset;
224 int ret; 224 int ret;
225 u64 new_block; 225 u64 uninitialized_var(new_block);
226 u32 max_extents; 226 u32 max_extents;
227 int extent_count; 227 int extent_count;
228 struct omfs_extent *oe; 228 struct omfs_extent *oe;