lascar-el-usb: Fix copy-paste errors.
This commit is contained in:
parent
3182d4ebb3
commit
9851d35b0a
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue