btrfs-progs: Initialize ret to suppress compiler warning
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Thu, 1 Dec 2016 17:28:20 +0000 (11:28 -0600)
committerDavid Sterba <dsterba@suse.com>
Wed, 14 Dec 2016 14:06:35 +0000 (15:06 +0100)
commit11315213aa88b147348d936cff6d1038e4b20c0d
treeca5a16746580a70d5a69db3ad219cff31ae35746
parent617af9e92e0c4cb6c15c5f3d5d9cb194c303c4b6
btrfs-progs: Initialize ret to suppress compiler warning

The path that leaves ret unintialized goes through the second if block
and requires dback->found_ref to be 0. Quick search leads to several
places where it's set according to found items so we won't reach the for
loop with found_ref 0.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
[ updated changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c
qgroup-verify.c