iio:kfifo_buf improve error handling in read_first_n.
authorJonathan Cameron <jic23@kernel.org>
Mon, 27 Aug 2012 17:40:04 +0000 (18:40 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Aug 2012 17:58:36 +0000 (18:58 +0100)
commit08ce9b44b53c580987b6a63df4e2206e45e20b92
tree62e59a11a0048b3f26af6c616f7ab931aed97734
parentc559afbfb08c7eac215ba417251225d3a8e01062
iio:kfifo_buf improve error handling in read_first_n.

These two elements were originally in the patch
iio:kfifo_buf  Take advantage of the fixed record size used in IIO
but Lars-Peter Clausen pointed out they should not have been
so here they are.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Tested-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/iio/kfifo_buf.c