From 55115a71dc8bd9cf65839c7f39da4b40f55c4cb0 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Thu, 19 Jun 2014 16:55:32 +0300 Subject: [PATCH] monitor: Fix checking boolean return value 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 a747938f9..a5ed5f4f6 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) { -- 2.47.3