]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: comedi_buf: comedi_buf_memcpy_to() remove 'offset' param
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 22 Oct 2014 21:36:50 +0000 (14:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 08:01:20 +0000 (16:01 +0800)
commit319ad742bddace99d6576e4b6fba1f074f29ed2a
tree13e93a0af6795fd00ed18662d9346ec3c3f8d508
parentaa26e46b0f1d2c0093ec59a68aec715df3f06715
staging: comedi: comedi_buf: comedi_buf_memcpy_to() remove 'offset' param

This parameter is always passed as '0'. Remove the unnecessary parameter.

This allows removing the unnecessary check of the write_ptr overflow.

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