From 71be1210831ca65425f33cc85ecc1ece2c6717ba Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 8 Feb 2015 08:38:10 +1100 Subject: [PATCH] Microoptimise --- src/generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index 9de90674..e2d0460a 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1736,8 +1736,8 @@ retry: /* Anything remaining should be share submissions */ json_t *val = json_loads(buf, 0, NULL); - if (!val) - LOGWARNING("Received unrecognised message: %s", buf); + if (unlikely(!val)) + LOGWARNING("Generator received unrecognised message: %s", buf); else submit_share(proxi, val); }