struct sr_datafeed_packet packet;
struct sr_usb_dev_inst *usb;
struct timeval tv;
- int len, ret, i;
+ int len, ret;
unsigned char cmd[2];
(void)fd;
NULL);
if (sdi->status == SR_ST_STOPPING) {
- for (i = 0; devc->usbfd[i] != -1; i++)
- sr_source_remove(devc->usbfd[i]);
+ usb_source_remove(drvc->sr_ctx);
packet.type = SR_DF_END;
sr_session_send(cb_data, &packet);