projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cb0953
)
Don't set EOMEDI_CB_EOBUF event flag in comedi_buf_write_free(),
author
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 1 May 2007 20:15:38 +0000
(20:15 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 1 May 2007 20:15:38 +0000
(20:15 +0000)
since it may be called by user writing into buffer.
comedi/drivers.c
patch
|
blob
|
history
diff --git
a/comedi/drivers.c
b/comedi/drivers.c
index c678a9cde659b6b9d9df9b5ef0b22a7f2849f9bd..293fdfc4574fcf9c2d24b34b60307105ae1d1ac7 100644
(file)
--- a/
comedi/drivers.c
+++ b/
comedi/drivers.c
@@
-433,7
+433,7
@@
int comedi_buf_alloc(comedi_device *dev, comedi_subdevice *s,
{
comedi_async *async = s->async;
unsigned long adr;
-
+
/* if no change is required, do nothing */
if(async->prealloc_buf && async->prealloc_bufsz == new_size){
return 0;
@@
-645,7
+645,6
@@
unsigned comedi_buf_write_free(comedi_async *async, unsigned int nbytes)
comedi_buf_munge(async, async->buf_write_count - async->munge_count);
if(async->buf_write_ptr >= async->prealloc_bufsz){
async->buf_write_ptr %= async->prealloc_bufsz;
- async->events |= COMEDI_CB_EOBUF;
}
return nbytes;
}