From: Ian Abbott Date: Wed, 19 May 2010 16:22:41 +0000 (+0100) Subject: Staging: comedi: don't write to buffer if command finished X-Git-Tag: v2.6.35-rc2~14^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d261154057c27f6c1d256b6198b0ad08733f1758;p=pandora-kernel.git Staging: comedi: don't write to buffer if command finished For write(), any data copied to the data buffer after the previously set up streaming acquisition command has finished won't be used, but a non-empty write() does not currently return 0 (or -EPIPE on error) after the command has finished until the data buffer has been filled up. Change this behavior to return 0 (or -EPIPE) any time after the command has finished, without bothering to fill up the buffer with more useless data. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed