Remove unused code enclosed under #if 0 to fix the checkpatch
warnings.
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
int warnonce[n_cpus];
char pipe_raw[PATH_MAX];
int legacy_kernel = 0;
-#if 0
- int need_sleep = 0;
-#endif
memset(&warnonce, 0, sizeof(warnonce));
log(TERM, LOG_INFO,
"Error on CPU %i\n", i);
warnonce[i]++;
-#if 0
- need_sleep = 1;
-#endif
}
}
if (!(fds[i].revents & POLLIN)) {
count_nready++;
}
}
-#if 0
- if (need_sleep)
- sleep(POLLING_TIME);
-#else
/*
* If we enable fallback mode, it will always be used, as
* poll is still not working fine, IMHO
legacy_kernel = 1;
break;
}
-#endif
} while (1);
/* poll() is not supported. We need to fallback to the old way */