summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/backref.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2013-08-14 18:12:25 +0200
committerChris Mason <chris.mason@fusionio.com>2013-09-01 08:15:50 -0400
commit35a3621beb3e2face3e7954eaee20a8fa0043fac (patch)
tree2af11fe9a4421f1438de09e687749c25b8d6b37a /fs/btrfs/backref.c
parent18674c6cc10e78745f7af7faf26583ea9fe78c38 (diff)
downloadblackbird-op-linux-35a3621beb3e2face3e7954eaee20a8fa0043fac.tar.gz
blackbird-op-linux-35a3621beb3e2face3e7954eaee20a8fa0043fac.zip
Btrfs: get rid of sparse warnings
make C=2 fs/btrfs/ CF=-D__CHECK_ENDIAN__ I tried to filter out the warnings for which patches have already been sent to the mailing list, pending for inclusion in btrfs-next. All these changes should be obviously safe. Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/backref.c')
-rw-r--r--fs/btrfs/backref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index ae798c1d088b..977e9c66f2e3 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -365,7 +365,7 @@ static int __resolve_indirect_refs(struct btrfs_fs_info *fs_info,
node = ulist_next(parents, &uiter);
ref->parent = node ? node->val : 0;
ref->inode_list = node ?
- (struct extent_inode_elem *)(uintptr_t)node->aux : 0;
+ (struct extent_inode_elem *)(uintptr_t)node->aux : NULL;
/* additional parents require new refs being added here */
while ((node = ulist_next(parents, &uiter))) {
OpenPOWER on IntegriCloud