diff --git a/tools/dmsetup.c b/tools/dmsetup.c index 06d609b21..e5ac80acc 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -652,10 +652,7 @@ static int _do_timer_wait(void) static int _timer_running(void) { - /* - * Clock shutdown for exit - nothing to do. - */ - return ((_timer_fd == TIMER_STOPPED) && !_cycle_timestamp); + return ((_timer_fd != TIMER_STOPPED) || _cycle_timestamp); } #else /* !HAVE_SYS_TIMERFD_H */