]> Pileus Git - ~andy/linux/blobdiff - fs/btrfs/inode.c
PTR_RET is now PTR_ERR_OR_ZERO(): Replace most.
[~andy/linux] / fs / btrfs / inode.c
index 6d1b93c8aafb8a4d7b832cab8585ebf1ac1ced42..2987e1755d60bcd031155110ca8cf9b982347b91 100644 (file)
@@ -3166,7 +3166,7 @@ int btrfs_orphan_cleanup(struct btrfs_root *root)
                found_key.type = BTRFS_INODE_ITEM_KEY;
                found_key.offset = 0;
                inode = btrfs_iget(root->fs_info->sb, &found_key, root, NULL);
-               ret = PTR_RET(inode);
+               ret = PTR_ERR_OR_ZERO(inode);
                if (ret && ret != -ESTALE)
                        goto out;