From: Frank Mori Hess Date: Sat, 6 Sep 2003 16:33:54 +0000 (+0000) Subject: move init of async->events into init_async_buf() X-Git-Tag: r0_7_69~228 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d76968493321692d3a51d9df8586af2bfc749154;p=comedi.git move init of async->events into init_async_buf() --- 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; }