diff options
Diffstat (limited to 'fs/hfsplus/bfind.c')
-rw-r--r-- | fs/hfsplus/bfind.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/hfsplus/bfind.c b/fs/hfsplus/bfind.c index d73c98d1ee99..bbfdc1707725 100644 --- a/fs/hfsplus/bfind.c +++ b/fs/hfsplus/bfind.c | |||
@@ -56,7 +56,8 @@ int hfs_find_1st_rec_by_cnid(struct hfs_bnode *bnode, | |||
56 | int *end, | 56 | int *end, |
57 | int *cur_rec) | 57 | int *cur_rec) |
58 | { | 58 | { |
59 | __be32 cur_cnid, search_cnid; | 59 | __be32 cur_cnid; |
60 | __be32 search_cnid; | ||
60 | 61 | ||
61 | if (bnode->tree->cnid == HFSPLUS_EXT_CNID) { | 62 | if (bnode->tree->cnid == HFSPLUS_EXT_CNID) { |
62 | cur_cnid = fd->key->ext.cnid; | 63 | cur_cnid = fd->key->ext.cnid; |
@@ -67,8 +68,11 @@ int hfs_find_1st_rec_by_cnid(struct hfs_bnode *bnode, | |||
67 | } else if (bnode->tree->cnid == HFSPLUS_ATTR_CNID) { | 68 | } else if (bnode->tree->cnid == HFSPLUS_ATTR_CNID) { |
68 | cur_cnid = fd->key->attr.cnid; | 69 | cur_cnid = fd->key->attr.cnid; |
69 | search_cnid = fd->search_key->attr.cnid; | 70 | search_cnid = fd->search_key->attr.cnid; |
70 | } else | 71 | } else { |
72 | cur_cnid = 0; /* used-uninitialized warning */ | ||
73 | search_cnid = 0; | ||
71 | BUG(); | 74 | BUG(); |
75 | } | ||
72 | 76 | ||
73 | if (cur_cnid == search_cnid) { | 77 | if (cur_cnid == search_cnid) { |
74 | (*end) = (*cur_rec); | 78 | (*end) = (*cur_rec); |