diff options
author | Andi Kleen <andi@firstfloor.org> | 2010-10-29 15:14:31 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-10-29 15:14:31 -0400 |
commit | 411fc6bcef54f828a5458f4730c68abdf13c6bf0 (patch) | |
tree | 89b91cd7e0d7633e9d6e386e388bd0493165f66c /fs/btrfs/tree-log.c | |
parent | d0b678cb0a26783ab7238784f1e7e608e5caafa3 (diff) |
Btrfs: Fix variables set but not read (bugs found by gcc 4.6)
These are all the cases where a variable is set, but not
read which are really bugs.
- Couple of incorrect error handling fixed.
- One incorrect use of a allocation policy
- Some other things
Still needs more review.
Found by gcc 4.6's new warnings.
[akpm@linux-foundation.org: fix build. Might have been bitrot]
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index fb102a9aee9c..224fb5b3daad 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -2273,7 +2273,7 @@ fail: | |||
2273 | } | 2273 | } |
2274 | btrfs_end_log_trans(root); | 2274 | btrfs_end_log_trans(root); |
2275 | 2275 | ||
2276 | return 0; | 2276 | return err; |
2277 | } | 2277 | } |
2278 | 2278 | ||
2279 | /* see comments for btrfs_del_dir_entries_in_log */ | 2279 | /* see comments for btrfs_del_dir_entries_in_log */ |