Message ID | 1387423252-14637-1-git-send-email-anand.jain@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 740ae8c..35bf838 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1244,7 +1244,7 @@ static noinline int prepare_pages(struct inode *inode, struct page **pages, int i; unsigned long index = pos >> PAGE_CACHE_SHIFT; gfp_t mask = btrfs_alloc_write_mask(inode->i_mapping); - int err; + int err = 0; int faili; for (i = 0; i < num_pages; i++) {
would fix the below compile warning fs/btrfs/file.c: In function ‘prepare_pages’: fs/btrfs/file.c:1247: warning: ‘err’ may be used uninitialized in this function Signed-off-by: Anand Jain <anand.jain@oracle.com> --- fs/btrfs/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)