Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

timerfd: Remove an always true check

We would have returned -EINVAL earlier if ticks wasn't set.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Link: http://lkml.kernel.org/r/20140801082848.GF28869@mwanda
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Dan Carpenter and committed by
Thomas Gleixner
88299c9b 42594970

+1 -2
+1 -2
fs/timerfd.c
··· 333 333 spin_lock_irq(&ctx->wqh.lock); 334 334 if (!timerfd_canceled(ctx)) { 335 335 ctx->ticks = ticks; 336 - if (ticks) 337 - wake_up_locked(&ctx->wqh); 336 + wake_up_locked(&ctx->wqh); 338 337 } else 339 338 ret = -ECANCELED; 340 339 spin_unlock_irq(&ctx->wqh.lock);