]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
omfs: fix uninitialized variable warning
authorBill Pemberton <wfp5p@virginia.edu>
Tue, 3 Aug 2010 19:19:30 +0000 (15:19 -0400)
committerBob Copeland <me@bobcopeland.com>
Sun, 8 Aug 2010 16:02:05 +0000 (12:02 -0400)
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>
fs/omfs/file.c

index 76bc21b91a8a467d9c4b86d9cbb9ca6917f16e46..d821d468e5a25acbc70702314044a4b79b381b22 100644 (file)
@@ -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;