| 1898 | } |
| 1899 | |
| 1900 | static void remove_sources(struct DSL_context *devc) |
| 1901 | { |
| 1902 | int i; |
| 1903 | sr_info("%s: remove fds from polling", __func__); |
| 1904 | /* Remove fds from polling. */ |
| 1905 | for (i = 0; devc->usbfd[i] != -1; i++) |
| 1906 | sr_source_remove(devc->usbfd[i]); |
| 1907 | g_free(devc->usbfd); |
| 1908 | } |
| 1909 | |
| 1910 | static int receive_data(int fd, int revents, const struct sr_dev_inst *sdi) |
| 1911 | { |
no test coverage detected