From 9851d35b0aa4745f93a4812af8f25d21de041020 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 10 Sep 2015 18:52:15 +0200 Subject: [PATCH] lascar-el-usb: Fix copy-paste errors. --- src/hardware/lascar-el-usb/api.c | 2 +- src/hardware/lascar-el-usb/protocol.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hardware/lascar-el-usb/api.c b/src/hardware/lascar-el-usb/api.c index ba906e07..c8938f21 100644 --- a/src/hardware/lascar-el-usb/api.c +++ b/src/hardware/lascar-el-usb/api.c @@ -416,7 +416,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) libusb_handle_events_timeout(drvc->sr_ctx->libusb_ctx, &tv); } if (xfer_in->user_data != GINT_TO_POINTER(1) || - xfer_in->user_data != GINT_TO_POINTER(1)) { + xfer_out->user_data != GINT_TO_POINTER(1)) { sr_dbg("no response to log transfer request"); libusb_free_transfer(xfer_in); libusb_free_transfer(xfer_out); diff --git a/src/hardware/lascar-el-usb/protocol.c b/src/hardware/lascar-el-usb/protocol.c index 24e85e5c..1437773c 100644 --- a/src/hardware/lascar-el-usb/protocol.c +++ b/src/hardware/lascar-el-usb/protocol.c @@ -183,7 +183,7 @@ SR_PRIV int lascar_get_config(libusb_device_handle *dev_hdl, *configlen = buflen; cleanup: - if (!xfer_in->user_data || !xfer_in->user_data) { + if (!xfer_in->user_data || !xfer_out->user_data) { if (!xfer_in->user_data) libusb_cancel_transfer(xfer_in); if (!xfer_out->user_data) @@ -269,7 +269,7 @@ static int lascar_save_config(libusb_device_handle *dev_hdl, } cleanup: - if (!xfer_in->user_data || !xfer_in->user_data) { + if (!xfer_in->user_data || !xfer_out->user_data) { if (!xfer_in->user_data) libusb_cancel_transfer(xfer_in); if (!xfer_out->user_data)