summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/commit.c
diff options
context:
space:
mode:
authorSubrata Modak <subrata@linux.vnet.ibm.com>2009-07-15 04:19:03 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-24 14:14:54 +0200
commit83ef2ecdbbd49cb0fbbfc7012b111b71664e386d (patch)
treea45f4b7f106f36f766494126aea2b74fd4ddc32e /fs/ubifs/commit.c
parentLinux 2.6.31-rc4 (diff)
downloadlinux-83ef2ecdbbd49cb0fbbfc7012b111b71664e386d.tar.xz
linux-83ef2ecdbbd49cb0fbbfc7012b111b71664e386d.zip
UBIFS: suppress compilation warning
Fix "using uninitialized variable" compilation warning by using the "unititialized_var()" helper. Signed-off-by: Subrata Modak<subrata@linux.vnet.ibm.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/commit.c')
-rw-r--r--fs/ubifs/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/commit.c b/fs/ubifs/commit.c
index f3a7945527fb..4775af401167 100644
--- a/fs/ubifs/commit.c
+++ b/fs/ubifs/commit.c
@@ -510,7 +510,7 @@ int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot)
int lnum, offs, len, err = 0, uninitialized_var(last_level), child_cnt;
int first = 1, iip;
struct ubifs_debug_info *d = c->dbg;
- union ubifs_key lower_key, upper_key, l_key, u_key;
+ union ubifs_key uninitialized_var(lower_key), upper_key, l_key, u_key;
unsigned long long uninitialized_var(last_sqnum);
struct ubifs_idx_node *idx;
struct list_head list;