From 1f6b411372076426c0faf0bb350437fb4d82931f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Sep 2015 14:23:02 +0200 Subject: tree-wide: update empty-if coccinelle script to cover empty-while and more Let's also clean up single-line while and for blocks. --- src/journal-remote/journal-remote.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/journal-remote') diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index bdf01f582c..efa4baafde 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -614,10 +614,9 @@ static int request_handler( return code; } else { r = getnameinfo_pretty(fd, &hostname); - if (r < 0) { + if (r < 0) return mhd_respond(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, "Cannot check remote hostname"); - } } assert(hostname); -- cgit v1.2.3-54-g00ecf