From 407e47b3066113b97b9352cfd6ebb217585d4eff Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 22 Jan 2015 15:24:16 +0100 Subject: [PATCH] ntp: remove unnecessary check in read_from_socket() --- ntp_io.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ntp_io.c b/ntp_io.c index fdf4bb6..7d62eb3 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) {