Commit ffc18879 authored by Bill Pemberton's avatar Bill Pemberton Committed by Bob Copeland

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: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarBob Copeland <me@bobcopeland.com>
parent 8800a044
...@@ -222,7 +222,7 @@ static int omfs_get_block(struct inode *inode, sector_t block, ...@@ -222,7 +222,7 @@ static int omfs_get_block(struct inode *inode, sector_t block,
struct buffer_head *bh; struct buffer_head *bh;
sector_t next, offset; sector_t next, offset;
int ret; int ret;
u64 new_block; u64 uninitialized_var(new_block);
u32 max_extents; u32 max_extents;
int extent_count; int extent_count;
struct omfs_extent *oe; struct omfs_extent *oe;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment