From: Bill Pemberton Date: Tue, 3 Aug 2010 19:19:30 +0000 (-0400) Subject: omfs: fix uninitialized variable warning X-Git-Tag: firefly_0821_release~9833^2~1037^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ffc18879903e55487bc5ac3c774b99a07de06029;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Bob Copeland --- diff --git a/fs/omfs/file.c b/fs/omfs/file.c index 76bc21b91a8a..d821d468e5a2 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, 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;