We never set this status, so remove it.

Signed-off-by: Christoph Hellwig <hch@lst.de>

---
 sheep/group.c      |    3 ---
 sheep/ops.c        |    2 --
 sheep/sheep_priv.h |    6 ------
 3 files changed, 11 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index 904393c..765e542 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -736,9 +736,6 @@ static void update_cluster_info(struct join_message *msg,
 	eprintf("status = %d, epoch = %d, finished: %d\n", msg->cluster_status,
 		msg->epoch, sys->join_finished);
 
-	if (sys_stat_join_failed())
-		return;
-
 	if (!sys->join_finished)
 		finish_join(msg, joined, nodes, nr_nodes);
 
diff --git a/sheep/ops.c b/sheep/ops.c
index 59df88e..03d6e24 100644
--- a/sheep/ops.c
+++ b/sheep/ops.c
@@ -372,8 +372,6 @@ static int local_stat_cluster(struct request *req)
 		return SD_RES_WAIT_FOR_JOIN;
 	case SD_STATUS_SHUTDOWN:
 		return SD_RES_SHUTDOWN;
-	case SD_STATUS_JOIN_FAILED:
-		return SD_RES_JOIN_FAILED;
 	case SD_STATUS_HALT:
 		return SD_RES_HALT;
 	default:
diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
index b707ffb..4d49a2e 100644
--- a/sheep/sheep_priv.h
+++ b/sheep/sheep_priv.h
@@ -32,7 +32,6 @@
 #define SD_STATUS_WAIT_FOR_FORMAT   0x00000002
 #define SD_STATUS_WAIT_FOR_JOIN     0x00000004
 #define SD_STATUS_SHUTDOWN          0x00000008
-#define SD_STATUS_JOIN_FAILED       0x00000010
 #define SD_STATUS_HALT              0x00000020
 
 #define SD_RES_NETWORK_ERROR    0x81 /* Network error between sheep */
@@ -361,11 +360,6 @@ static inline int sys_stat_wait_join(void)
 	return sys->status & SD_STATUS_WAIT_FOR_JOIN;
 }
 
-static inline int sys_stat_join_failed(void)
-{
-	return sys->status & SD_STATUS_JOIN_FAILED;
-}
-
 static inline int sys_stat_shutdown(void)
 {
 	return sys->status & SD_STATUS_SHUTDOWN;
-- 
1.7.10



