Fix cppcheck warning "Variable is assigned a value that is never used"

This commit is contained in:
Philippe Teuwen 2013-03-06 10:56:12 +01:00
parent f152aaffa3
commit 0aa1ff309e
2 changed files with 1 additions and 4 deletions

View file

@ -127,7 +127,7 @@ uart_flush_input(serial_port sp)
}
char *rx = malloc(available_bytes_count);
// There is something available, read the data
res = read(UART_DATA(sp)->fd, rx, available_bytes_count);
read(UART_DATA(sp)->fd, rx, available_bytes_count);
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%d bytes have eatten.", available_bytes_count);
free(rx);
}