From 71834a55a31395ddd401fb6aaa8ec982c050f0ef Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 2 Feb 2015 01:19:43 +0200 Subject: [PATCH] Unneccessary branch --- bin/server.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/server.c b/bin/server.c index 7477291..b8cff5c 100644 --- a/bin/server.c +++ b/bin/server.c @@ -260,10 +260,7 @@ cb_read_hello(struct pi9 *pi9, struct node *node, uint64_t offset, uint32_t coun // The bytes are returned with the read reply message. // XXX: Just example here, we ignore offset and count - if (pi9_write("Hello World!", 1, sizeof("Hello World!"), pi9->out) != sizeof("Hello World!")) - return false; - - return true; + return (pi9_write("Hello World!", 1, sizeof("Hello World!"), pi9->out) == sizeof("Hello World!")); } static bool