aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-10-09 09:57:45 -0400
committerChris Mason <chris.mason@oracle.com>2009-10-09 09:57:45 -0400
commite9061e214810c9534381a705a1b46533e09f2676 (patch)
tree7eed17ffbfc2eeb06da70dafe8087855c4b22a60 /fs
parent82d339d9b3a6395f17d3253887653250b693b74b (diff)
Btrfs: fix uninit compiler warning in cow_file_range_nocow
The extent_type variable was exposed uninit via a goto. It should be impossible to trigger because it is protected by a check on another variable, but this makes sure. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index d960492d3d88..ef399a7794ff 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1023,6 +1023,7 @@ next_slot:
1023 1023
1024 if (found_key.offset > cur_offset) { 1024 if (found_key.offset > cur_offset) {
1025 extent_end = found_key.offset; 1025 extent_end = found_key.offset;
1026 extent_type = 0;
1026 goto out_check; 1027 goto out_check;
1027 } 1028 }
1028 1029