staging: iio: generic_buffer: initialize ret
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 7 Oct 2013 12:42:00 +0000 (13:42 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Oct 2013 11:19:50 +0000 (12:19 +0100)
The `ret´ variable is only initialized in the error case. For some reason
it was always != 0 while I played with generic_buffer so here is a patch.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

No differences found