Code

write_graphite: remove dead assignment
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 5 Jun 2016 12:35:36 +0000 (14:35 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 5 Jun 2016 12:35:36 +0000 (14:35 +0200)
status is immediately overwritten in the next line.

src/write_graphite.c

index 5acda6e0994f738e1a8e42e3d2d3b59057a0ea8b..3dc4df426a932bb191db1460905b9e8500d4f155 100644 (file)
@@ -135,7 +135,7 @@ static void wg_reset_buffer (struct wg_callback *cb)
 
 static int wg_send_buffer (struct wg_callback *cb)
 {
-    ssize_t status = 0;
+    ssize_t status;
 
     status = swrite (cb->sock_fd, cb->send_buf, strlen (cb->send_buf));
     if (status != 0)