From: Chris Mason Date: Thu, 28 Aug 2008 10:15:25 +0000 (-0400) Subject: Btrfs: Fix variable init during csum creation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=639cb58675ce9b507eed9c3d6b3335488079b21a;p=mv-sheeva.git Btrfs: Fix variable init during csum creation Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index f861bd50692..6dbe88b9d7d 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -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);