[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160713100249.GB29468@mwanda>
Date: Wed, 13 Jul 2016 13:02:49 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Phillip Lougher <phillip@...ashfs.org.uk>
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [patch] Squashfs: silence some uninitialized variable warnings
We print these values in the TRACE() code before we check that
fill_meta_index() was successful. It makes my static checker complain.
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
diff --git a/fs/squashfs/file.c b/fs/squashfs/file.c
index 13d8094..46679e2 100644
--- a/fs/squashfs/file.c
+++ b/fs/squashfs/file.c
@@ -334,9 +334,9 @@ failed:
*/
static int read_blocklist(struct inode *inode, int index, u64 *block)
{
- u64 start;
+ u64 start = -1;
long long blks;
- int offset;
+ int offset = -1;
__le32 size;
int res = fill_meta_index(inode, index, &start, &offset, block);
Powered by blists - more mailing lists