diff options
-rw-r--r-- | fs/btrfs/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 40fee137dd11..5621818921f8 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -2718,9 +2718,10 @@ static int check_path_shared(struct btrfs_root *root, | |||
2718 | struct extent_buffer *eb; | 2718 | struct extent_buffer *eb; |
2719 | int level; | 2719 | int level; |
2720 | u64 refs = 1; | 2720 | u64 refs = 1; |
2721 | int uninitialized_var(ret); | ||
2722 | 2721 | ||
2723 | for (level = 0; level < BTRFS_MAX_LEVEL; level++) { | 2722 | for (level = 0; level < BTRFS_MAX_LEVEL; level++) { |
2723 | int ret; | ||
2724 | |||
2724 | if (!path->nodes[level]) | 2725 | if (!path->nodes[level]) |
2725 | break; | 2726 | break; |
2726 | eb = path->nodes[level]; | 2727 | eb = path->nodes[level]; |
@@ -2731,7 +2732,7 @@ static int check_path_shared(struct btrfs_root *root, | |||
2731 | if (refs > 1) | 2732 | if (refs > 1) |
2732 | return 1; | 2733 | return 1; |
2733 | } | 2734 | } |
2734 | return ret; /* XXX callers? */ | 2735 | return 0; |
2735 | } | 2736 | } |
2736 | 2737 | ||
2737 | /* | 2738 | /* |