summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorYaowei Bai <baiyaowei@cmss.chinamobile.com>2015-11-17 14:52:19 +0800
committerIlya Dryomov <idryomov@gmail.com>2016-01-21 19:36:07 +0100
commit79a3ed2e98557a2844e75c203e742f9c229ad1d3 (patch)
tree62ca3d287fd1427033cdbce70e9cd673f896b4d9 /include/linux
parenteade1fe75fd3ad89c10d011969c0eed8f13e28e0 (diff)
ceph: ceph_frag_contains_value can be boolean
This patch makes ceph_frag_contains_value return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com> Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ceph/ceph_frag.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ceph/ceph_frag.h b/include/linux/ceph/ceph_frag.h
index 970ba5cb1409..b827e066e55a 100644
--- a/include/linux/ceph/ceph_frag.h
+++ b/include/linux/ceph/ceph_frag.h
@@ -40,7 +40,7 @@ static inline __u32 ceph_frag_mask_shift(__u32 f)
return 24 - ceph_frag_bits(f);
}
-static inline int ceph_frag_contains_value(__u32 f, __u32 v)
+static inline bool ceph_frag_contains_value(__u32 f, __u32 v)
{
return (v & ceph_frag_mask(f)) == ceph_frag_value(f);
}