]> sigrok.org Git - libsigrok.git/commitdiff
backend.c: Revert accidentally committed test code.
authorUwe Hermann <redacted>
Mon, 22 Oct 2012 08:17:38 +0000 (10:17 +0200)
committerUwe Hermann <redacted>
Mon, 22 Oct 2012 08:17:38 +0000 (10:17 +0200)
backend.c

index eba03aafb5388197cb743f9cd09240ba4a28f851..ae9dc49e898f87de99a23453c86c90c827dc3db8 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -56,7 +56,7 @@ SR_API int sr_init(struct sr_context **ctx)
 
 #ifdef HAVE_LIBUSB_1_0
        ret = libusb_init(&context->libusb_ctx);
-       if (LIBUSB_SUCCESS == ret) {
+       if (LIBUSB_SUCCESS != ret) {
                sr_err("libusb_init() returned %s.\n", libusb_error_name(ret));
                goto done;
        }