]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: remove unnecessary check in read_from_socket()
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 22 Jan 2015 14:24:16 +0000 (15:24 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 22 Jan 2015 14:38:41 +0000 (15:38 +0100)
ntp_io.c

index fdf4bb6d9139ce6793ff9faa632fab1d5865dee1..7d62eb3c125f8ba980d125e0cede527873d018c2 100644 (file)
--- 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) {