[Sheepdog] [PATCH 5/6] remove needless sd_node_list access
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Fri Apr 9 09:10:44 CEST 2010
Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
collie/group.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/collie/group.c b/collie/group.c
index 48ead9e..e4f78da 100644
--- a/collie/group.c
+++ b/collie/group.c
@@ -160,7 +160,7 @@ static void get_node_list(struct sd_node_req *req,
rsp->nr_nodes = nr_nodes;
rsp->local_idx = get_node_idx(&sys->this_node, data, nr_nodes);
- if (list_empty(&sys->sd_node_list)) {
+ if (!nr_nodes) {
rsp->master_idx = -1;
return;
}
--
1.7.0
More information about the sheepdog
mailing list