Skip to content

Commit

Permalink
Btrfs: fix uninit compiler warning in cow_file_range_nocow
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Mason committed Oct 9, 2009
1 parent 82d339d commit e9061e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ static noinline int run_delalloc_nocow(struct inode *inode,

if (found_key.offset > cur_offset) {
extent_end = found_key.offset;
extent_type = 0;
goto out_check;
}

Expand Down

0 comments on commit e9061e2

Please sign in to comment.