Skip to content

Commit

Permalink
omfs: fix uninitialized variable warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bill Pemberton authored and Bob Copeland committed Aug 8, 2010
1 parent 8800a04 commit ffc1887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/omfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static int omfs_get_block(struct inode *inode, sector_t block,
struct buffer_head *bh;
sector_t next, offset;
int ret;
u64 new_block;
u64 uninitialized_var(new_block);
u32 max_extents;
int extent_count;
struct omfs_extent *oe;
Expand Down

0 comments on commit ffc1887

Please sign in to comment.