For write(), don't bother writing data to buffer if command already
authorIan Abbott <abbotti@mev.co.uk>
Fri, 14 May 2010 15:29:11 +0000 (15:29 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 14 May 2010 15:29:11 +0000 (15:29 +0000)
commit46ef0fac7ac268420316f183c5a67e7fbab1edee
tree63d7b3ddc3bf68fdc07c27d711373bb0af054a57
parent1074610799c227eed8aa9478bcb983ccf33b511e
For write(), don't bother writing data to buffer if command already
finished, as the data won't be used anyway.  This allows user code to
see the command has finished before it has refilled the buffer completely.
comedi/comedi_fops.c