dist/tools/ethos/ethos.c: remove unusued var 'escaped'

This commit is contained in:
Francisco Molina 2019-11-21 09:11:31 +01:00
parent 7e2fd21f2a
commit d2e90b2370

View File

@ -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;