]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: comedi: comedi_buf: clarify comedi_buf_read_free()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 9 Jan 2013 20:31:16 +0000 (13:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 00:53:59 +0000 (16:53 -0800)
commit3abfa1066b9e98df434868eda9ba91d7012d45c6
tree5e91cf1e7a60b3d0a48f1f9ec1660bd65bc35fad
parent034cbd17922a8b6c64b227360314167c15c1f031
staging: comedi: comedi_buf: clarify comedi_buf_read_free()

Reword the comment about the need for the smp_mb().

Clarify the check to make sure the number of bytes to free is not
more than the number of bytes allocated.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_buf.c