From d76968493321692d3a51d9df8586af2bfc749154 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 6 Sep 2003 16:33:54 +0000 Subject: [PATCH] move init of async->events into init_async_buf() --- comedi/comedi_fops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index b125c89a..49559716 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -924,8 +924,6 @@ static int do_cmd_ioctl(comedi_device *dev,void *arg,void *file) async->cb_mask |= COMEDI_CB_EOS; } - async->events = 0; - s->runflags=SRF_USER; s->subdev_flags|=SDF_RUNNING; @@ -1899,5 +1897,7 @@ static void init_async_buf( comedi_async *async ) async->cur_chan = 0; async->scan_progress = 0; async->munge_chan = 0; + + async->events = 0; } -- 2.26.2