projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
300f8b1
)
sched.c: Remove unused timeout_is_zero().
author
Andre Noll
<maan@tuebingen.mpg.de>
Thu, 1 Jan 2015 18:20:39 +0000
(18:20 +0000)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Mon, 12 Jan 2015 22:29:07 +0000
(23:29 +0100)
Found by cppcheck.
sched.c
patch
|
blob
|
history
diff --git
a/sched.c
b/sched.c
index ad3641a37d90deacf8fdf8d4d8bd08fc94a6536e..3ba7a5e83d65aac415e8820dfc6e7c43398f8419 100644
(file)
--- a/
sched.c
+++ b/
sched.c
@@
-50,12
+50,6
@@
struct task {
static struct timeval now_struct;
const struct timeval *now = &now_struct;
static struct timeval now_struct;
const struct timeval *now = &now_struct;
-static inline bool timeout_is_zero(struct sched *s)
-{
- struct timeval *tv = &s->select_timeout;
- return tv->tv_sec == 0 && tv->tv_usec == 0;
-}
-
static void sched_preselect(struct sched *s)
{
struct task *t, *tmp;
static void sched_preselect(struct sched *s)
{
struct task *t, *tmp;