From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Since btsnoop_read_hci() is used from src/shared. --- monitor/analyze.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/analyze.c b/monitor/analyze.c index a747938..a5ed5f4 100644 --- a/monitor/analyze.c +++ b/monitor/analyze.c @@ -286,8 +286,8 @@ void analyze_trace(const char *path) struct timeval tv; uint16_t index, opcode, pktlen; - if (btsnoop_read_hci(btsnoop_file, &tv, &index, &opcode, - buf, &pktlen) < 0) + if (!btsnoop_read_hci(btsnoop_file, &tv, &index, &opcode, + buf, &pktlen)) break; switch (opcode) { -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html