aboutsummaryrefslogtreecommitdiffstats
path: root/developerbox_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'developerbox_spi.c')
-rw-r--r--developerbox_spi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/developerbox_spi.c b/developerbox_spi.c
index c84190a3..6308da63 100644
--- a/developerbox_spi.c
+++ b/developerbox_spi.c
@@ -147,8 +147,7 @@ static int developerbox_spi_init(void)
struct libusb_context *usb_ctx;
libusb_device_handle *cp210x_handle;
- libusb_init(&usb_ctx);
- if (!usb_ctx) {
+ if (libusb_init(&usb_ctx)) {
msg_perr("Could not initialize libusb!\n");
return 1;
}