mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 13:14:14 +08:00
monitor: Fix checking boolean return value
Since btsnoop_read_hci() is used from src/shared.
This commit is contained in:
parent
7cd5494b69
commit
55115a71dc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user