From 9517a0f6980e447ba8f14e735c275bab9529054c Mon Sep 17 00:00:00 2001 From: lemoer Date: Sat, 13 Aug 2016 16:47:11 +0200 Subject: [PATCH] respondd: simplify null check --- net/respondd/src/respondd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/respondd/src/respondd.c b/net/respondd/src/respondd.c index e1f6144..9f46dd3 100644 --- a/net/respondd/src/respondd.c +++ b/net/respondd/src/respondd.c @@ -504,7 +504,7 @@ void send_response(int sock, struct json_object *result, bool compress, void serve_request(struct request_schedule *schedule, int sock) { struct request_task* task = schedule_pop_request(schedule); - if (task == NULL) + if (!task) return; bool compress;