]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hfsplus: fix warnings in fs/hfsplus/bfind.c
authorVyacheslav Dubeyko <slava@dubeyko.com>
Wed, 20 Mar 2013 04:08:24 +0000 (15:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:34:24 +0000 (16:34 +1100)
fs/hfsplus/bfind.c: In function 'hfs_find_1st_rec_by_cnid':
(1) include/uapi/linux/swab.h:60:2: warning: 'search_cnid' may be used uninitialized in this function [-Wmaybe-uninitialized]
(2) include/uapi/linux/swab.h:60:2: warning: 'cur_cnid' may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/hfsplus/bfind.c

index d73c98d1ee99268e16cdd4e6a81a1fd1700c8435..a953637ec9cd155664e0d038fcb3ef2e94c4cf55 100644 (file)
@@ -56,7 +56,8 @@ int hfs_find_1st_rec_by_cnid(struct hfs_bnode *bnode,
                                int *end,
                                int *cur_rec)
 {
-       __be32 cur_cnid, search_cnid;
+       __be32 cur_cnid = 0;
+       __be32 search_cnid = 0;
 
        if (bnode->tree->cnid == HFSPLUS_EXT_CNID) {
                cur_cnid = fd->key->ext.cnid;