btrfs: fix uninitialized return value
authorDavid Sterba <dsterba@suse.cz>
Mon, 13 Jun 2011 15:18:23 +0000 (15:18 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 17 Jun 2011 18:54:18 +0000 (14:54 -0400)
commit35a30d7ce54e087d8025a725d4e5a2fdee723a9f
treeba7ab5023cde23bb0d7e0ea2e23400db8de80668
parent19fd294957e426bfdd8e19085096467ec18df5c4
btrfs: fix uninitialized return value

When allocation fails in btrfs_read_fs_root_no_name, ret is not set
although it is returned, holding a garbage value.

Signed-off-by: David Sterba <dsterba@suse.cz>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c