diff options
author | Christoph Hellwig <hch@lst.de> | 2008-09-05 16:43:31 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:07 -0400 |
commit | b214107eda845f9a5851ae198f5b972e0dc30c45 (patch) | |
tree | 9ca3127891a90b72f72477b48217d05fdfcaa83c /fs/btrfs/ctree.c | |
parent | a237d2a2bd67eb2b57b87c1e1d3d802d078d4ba7 (diff) | |
download | kernel-crypto-b214107eda845f9a5851ae198f5b972e0dc30c45.tar.gz kernel-crypto-b214107eda845f9a5851ae198f5b972e0dc30c45.tar.xz kernel-crypto-b214107eda845f9a5851ae198f5b972e0dc30c45.zip |
Btrfs: trivial sparse fixes
Fix a bunch of trivial sparse complaints.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 6cd4e929bd4..ab07557bac0 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -2749,7 +2749,6 @@ int btrfs_insert_empty_items(struct btrfs_trans_handle *trans, BUG_ON(slot < 0); if (slot != nritems) { - int i; unsigned int old_data = btrfs_item_end_nr(leaf, slot); if (old_data < data_end) { @@ -2913,7 +2912,6 @@ int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, nritems = btrfs_header_nritems(leaf); if (slot + nr != nritems) { - int i; int data_end = leaf_data_end(root, leaf); memmove_extent_buffer(leaf, btrfs_leaf_data(leaf) + |