From 5996c8f7ba77333ea30926e74a458b3950a34916 Mon Sep 17 00:00:00 2001 From: Alex Young Date: Mon, 11 Jun 2012 15:31:59 +0100 Subject: [PATCH] Simplify a FATAL_IF_NEGATIVE --- src/serve.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/serve.c b/src/serve.c index ce2cf1c..c243af2 100644 --- a/src/serve.c +++ b/src/serve.c @@ -213,9 +213,7 @@ int tryjoin_client_thread( struct client_tbl_entry *entry, int (*joinfunc)(pthre 64 ); if (joinfunc(entry->thread, &status) != 0) { - if (errno != EBUSY) { - FATAL_IF_NEGATIVE(-1, "Problem with joining thread"); - } + FATAL_UNLESS( errno == EBUSY, "Problem with joining thread" ); } else { debug("nbd thread %p exited (%s) with status %ld",