staging:iio: Remove noop call to __iio_update_buffer
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 28 Jan 2013 10:12:00 +0000 (10:12 +0000)
committerJonathan Cameron <jic23@kernel.org>
Thu, 31 Jan 2013 17:56:44 +0000 (17:56 +0000)
__iio_update_buffer updates the buffer's bytes_per_datum and length fields.
But the only user of this function just passes in these exact fields, so the
call basically looks like this:

buffer->bytes_per_datum = buffer->bytes_per_datum;
buffer->length = buffer->length;

Which means it is a noop and can be removed. Also remove the function itself,
since it is now unused.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

No differences found