Btrfs: Fix variable init during csum creation
authorChris Mason <chris.mason@oracle.com>
Thu, 28 Aug 2008 10:15:25 +0000 (06:15 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:07 +0000 (11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file-item.c

index f861bd506928486781e4ee7b1895bbae7d1c151a..6dbe88b9d7d43c2707bb6be2d270bb9eb3b4d50f 100644 (file)
@@ -325,6 +325,7 @@ again:
        item = btrfs_lookup_csum(trans, root, path, objectid, offset, 1);
        if (!IS_ERR(item)) {
                leaf = path->nodes[0];
+               ret = 0;
                goto found;
        }
        ret = PTR_ERR(item);