mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
ceph: fix warning PTR_ERR_OR_ZERO can be used
change1: fix below warning reported by coccicheck /fs/ceph/export.c:371:33-39: WARNING: PTR_ERR_OR_ZERO can be used change2: typecasted PTR_ERR_OR_ZERO to long as dout expecting long Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
d6e4781972
commit
03af439ad9
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ static struct dentry *ceph_get_parent(struct dentry *child)
|
|||
}
|
||||
out:
|
||||
dout("get_parent %p ino %llx.%llx err=%ld\n",
|
||||
child, ceph_vinop(inode), (IS_ERR(dn) ? PTR_ERR(dn) : 0));
|
||||
child, ceph_vinop(inode), (long)PTR_ERR_OR_ZERO(dn));
|
||||
return dn;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue