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

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

This allows removing the unnecessary check of the read_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