static int ft1000_poll_thread(void *arg) { int ret; while (!kthread_should_stop()) { msleep(10); if (!gPollingfailed) { ret = ft1000_poll(arg); if (ret != STATUS_SUCCESS) { DEBUG("ft1000_poll_thread: polling failed\n"); gPollingfailed = TRUE; } } } return STATUS_SUCCESS; }
static int ft1000_poll_thread(void *arg) { int ret; while (!kthread_should_stop()) { msleep(10); if (!gPollingfailed) { ret = ft1000_poll(arg); if (ret != 0) { DEBUG("ft1000_poll_thread: polling failed\n"); gPollingfailed = true; } } } return 0; }