Skip to content

Commit

Permalink
staging: comedi: comedi_test: remove unnecessary del_timer() call
Browse files Browse the repository at this point in the history
In the "comedi_test" module, the timer function
`waveform_ai_interrupt()` doesn't need to remove the timer from the
timer queue as the caller has already removed it from the queue.  Remove
the call to `del_timer()` in this function.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent 0653bed commit 594dc67
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/comedi/drivers/comedi_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ static void waveform_ai_interrupt(unsigned long arg)

if ((async->events & COMEDI_CB_EOA) == 0 && devpriv->timer_running)
mod_timer(&devpriv->timer, jiffies + 1);
else
del_timer(&devpriv->timer);

comedi_event(dev, dev->read_subdev);
}
Expand Down

0 comments on commit 594dc67

Please sign in to comment.