monitor: Fix checking boolean return value

Since btsnoop_read_hci() is used from src/shared.
This commit is contained in:
Andrei Emeltchenko 2014-06-19 16:55:32 +03:00 committed by Johan Hedberg
parent 7cd5494b69
commit 55115a71dc

View File

@ -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) {