diff --git a/dist/tools/ethos/ethos.c b/dist/tools/ethos/ethos.c index 1f45f73083..626ffd6e88 100644 --- a/dist/tools/ethos/ethos.c +++ b/dist/tools/ethos/ethos.c @@ -261,7 +261,6 @@ static void _write_escaped(int fd, char* buf, ssize_t n) /* Our workaround is to prepare the data to send in a local buffer and then * call write() on the buffer instead of one char at a time */ uint8_t out[SERIAL_BUFFER_SIZE]; - size_t escaped = 0; size_t buffered = 0; while(n--) { @@ -269,7 +268,6 @@ static void _write_escaped(int fd, char* buf, ssize_t n) if (c == LINE_FRAME_DELIMITER || c == LINE_ESC_CHAR) { out[buffered++] = LINE_ESC_CHAR; c ^= 0x20; - ++escaped; if (buffered >= SERIAL_BUFFER_SIZE) { checked_write(fd, out, buffered); buffered = 0;