From: Miroslav Lichvar Date: Thu, 22 Jan 2015 14:24:16 +0000 (+0100) Subject: ntp: remove unnecessary check in read_from_socket() X-Git-Tag: 2.0-pre1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=407e47b3066113b97b9352cfd6ebb217585d4eff;p=thirdparty%2Fchrony.git ntp: remove unnecessary check in read_from_socket() --- diff --git a/ntp_io.c b/ntp_io.c index fdf4bb6d..7d62eb3c 100644 --- a/ntp_io.c +++ b/ntp_io.c @@ -557,12 +557,9 @@ read_from_socket(void *anything) #endif } - if (status > 0) { - DEBUG_LOG(LOGF_NtpIO, "Received %d bytes from %s:%d to %s fd %d", - status, - UTI_IPToString(&remote_addr.ip_addr), remote_addr.port, - UTI_IPToString(&local_addr.ip_addr), local_addr.sock_fd); - } + DEBUG_LOG(LOGF_NtpIO, "Received %d bytes from %s:%d to %s fd %d", + status, UTI_IPToString(&remote_addr.ip_addr), remote_addr.port, + UTI_IPToString(&local_addr.ip_addr), local_addr.sock_fd); if (status >= NTP_NORMAL_PACKET_LENGTH) {