tools:iio:generic_buffer: pass up right error code
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:39:57 +0000 (14:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2015 16:36:12 +0000 (17:36 +0100)
find_type_by_name() returns a valid error code in case of an error. Pass
this code up instead of an artificial one.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/generic_buffer.c

Simple merge