From da078c090b6786072e30d048aee1a446165c05a2 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 18 Jul 2023 15:03:46 +0200 Subject: [PATCH] Fix unchecked return value of osmo_libusb_init() Fixes: CID#307501: Unchecked return value (CHECKED_RETURN) Change-Id: Ic1f600dfd44d15da165a17d84f0faab6f6fd69c3 --- host/src/simtrace2_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/src/simtrace2_usb.c b/host/src/simtrace2_usb.c index 8ebc4f71..b329eadb 100644 --- a/host/src/simtrace2_usb.c +++ b/host/src/simtrace2_usb.c @@ -78,7 +78,7 @@ static struct log_info log_info = {}; int main(int argc, char **argv) { osmo_init_logging2(NULL, &log_info); - osmo_libusb_init(NULL); + OSMO_ASSERT(osmo_libusb_init(NULL) == 0); find_devices(); return 0; }