summaryrefslogtreecommitdiff
path: root/fs/ceph/export.c
diff options
context:
space:
mode:
authorHariprasad Kelam <hariprasad.kelam@gmail.com>2019-05-25 14:45:59 +0530
committerIlya Dryomov <idryomov@gmail.com>2019-07-08 14:01:42 +0200
commit03af439ad9408c28e53b880daa56590dda1c8472 (patch)
tree15230302f14f3f7846aaa274d16e43332793820d /fs/ceph/export.c
parentd6e47819721ae2d9d090058ad5570a66f3c42e39 (diff)
downloadlinux-rpi-03af439ad9408c28e53b880daa56590dda1c8472.tar.gz
linux-rpi-03af439ad9408c28e53b880daa56590dda1c8472.tar.bz2
linux-rpi-03af439ad9408c28e53b880daa56590dda1c8472.zip
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>
Diffstat (limited to 'fs/ceph/export.c')
-rw-r--r--fs/ceph/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/export.c b/fs/ceph/export.c
index d3ef7ee429ec..15ff1b09cfa2 100644
--- a/fs/ceph/export.c
+++ b/fs/ceph/export.c
@@ -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;
}