summaryrefslogtreecommitdiff
path: root/fs/ubifs
diff options
context:
space:
mode:
authorSubrata Modak <subrata@linux.vnet.ibm.com>2009-07-15 07:49:03 +0530
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-24 15:14:54 +0300
commit83ef2ecdbbd49cb0fbbfc7012b111b71664e386d (patch)
treea45f4b7f106f36f766494126aea2b74fd4ddc32e /fs/ubifs
parent4be3bd7849165e7efa6b0b35a23d6a3598d97465 (diff)
downloadlinux-next-83ef2ecdbbd49cb0fbbfc7012b111b71664e386d.tar.gz
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')
-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;