summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--rvnit.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/rvnit.c b/rvnit.c
index 5d5d24f..933be5f 100644
--- a/rvnit.c
+++ b/rvnit.c
@@ -433,13 +433,10 @@ logger_loop(void* ignored)
 				if (!eol)
 					eol = e;
 
-				int r = 0;
-				if (use_global_log) {
-					r = dprintf(globallogfd[1],
-					    "%s.%05ld %s[%ld]: %.*s\n",
-					    timestamp, now.tv_nsec / 10000,
-					    sv, pid, (int)(eol - s), s);
-				}
+				int r = dprintf(globallogfd[1],
+				    "%s.%05ld %s[%ld]: %.*s\n",
+				    timestamp, now.tv_nsec / 10000,
+				    sv, pid, (int)(eol - s), s);
 				if (!use_global_log || pass_thru || r < 0) {
 					/* print own messages, and messages
 					   during boot/shutdown, or when writing