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)
commite83a47cf6a5bdbd3d5677db13ae4df22f5e24b08
tree198d19e8b6017c2c83352134fc0bb0bac95bbfb7
parent8749948a1bc0aff24e493f89de40e2ff95a83baf
tools:iio:generic_buffer: pass up right error code

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