[sheepdog] [PATCH 3/4] sheep: remove redundant ternary operator
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri Sep 14 10:24:28 CEST 2012
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/recovery.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sheep/recovery.c b/sheep/recovery.c
index e8b7d46..23a2f7e 100644
--- a/sheep/recovery.c
+++ b/sheep/recovery.c
@@ -629,7 +629,7 @@ out:
static inline bool node_is_gateway_only(void)
{
- return sys->this_node.nr_vnodes == 0 ? true : false;
+ return sys->this_node.nr_vnodes == 0;
}
int start_recovery(struct vnode_info *cur_vinfo, struct vnode_info *old_vinfo)
--
1.7.2.5
More information about the sheepdog
mailing list