summaryrefslogtreecommitdiff
path: root/net/ceph/ceph_common.c
diff options
context:
space:
mode:
authorZhang Zhuoyu <zhangzhuoyu@cmss.chinamobile.com>2016-03-25 12:18:39 +0300
committerIlya Dryomov <idryomov@gmail.com>2016-05-26 02:15:39 +0300
commit3b33f692c84c28cc8178aaeeb9264d82b48787f1 (patch)
treec2d56a816c39928e5c82b6fde4d233b800f2a8fb /net/ceph/ceph_common.c
parent224a7542b8fdde3cc7c600f8b0870c5541a9f678 (diff)
downloadlinux-3b33f692c84c28cc8178aaeeb9264d82b48787f1.tar.xz
ceph: make logical calculation functions return bool
This patch makes serverl logical caculation functions return bool to improve readability due to these particular functions only using 0/1 as their return value. No functional change. Signed-off-by: Zhang Zhuoyu <zhangzhuoyu@cmss.chinamobile.com>
Diffstat (limited to 'net/ceph/ceph_common.c')
-rw-r--r--net/ceph/ceph_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c
index dcc18c6f7cf9..55d2bfee16d7 100644
--- a/net/ceph/ceph_common.c
+++ b/net/ceph/ceph_common.c
@@ -651,7 +651,7 @@ EXPORT_SYMBOL(ceph_destroy_client);
/*
* true if we have the mon map (and have thus joined the cluster)
*/
-static int have_mon_and_osd_map(struct ceph_client *client)
+static bool have_mon_and_osd_map(struct ceph_client *client)
{
return client->monc.monmap && client->monc.monmap->epoch &&
client->osdc.osdmap && client->osdc.osdmap->epoch;