From: Ruben Kerkhof Date: Sun, 5 Jun 2016 12:35:36 +0000 (+0200) Subject: write_graphite: remove dead assignment X-Git-Tag: collectd-5.6.0~228^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b11c802b395d3ac8fd3dc3cc1efe3485bfcf7e2c;p=collectd.git write_graphite: remove dead assignment status is immediately overwritten in the next line. --- diff --git a/src/write_graphite.c b/src/write_graphite.c index 5acda6e0..3dc4df42 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -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)