Commit 639cb586 authored by Chris Mason's avatar Chris Mason

Btrfs: Fix variable init during csum creation

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 9473f16c
...@@ -325,6 +325,7 @@ int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans, ...@@ -325,6 +325,7 @@ int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans,
item = btrfs_lookup_csum(trans, root, path, objectid, offset, 1); item = btrfs_lookup_csum(trans, root, path, objectid, offset, 1);
if (!IS_ERR(item)) { if (!IS_ERR(item)) {
leaf = path->nodes[0]; leaf = path->nodes[0];
ret = 0;
goto found; goto found;
} }
ret = PTR_ERR(item); ret = PTR_ERR(item);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment