tools:iio:generic_buffer: fix check of errno
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:39:56 +0000 (14:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2015 16:35:04 +0000 (17:35 +0100)
commit8749948a1bc0aff24e493f89de40e2ff95a83baf
tree1587001a6bda3f0454323621215f2eb03e3ca8df
parent5fdb8c6127c3c594360fb5f2959a724809c0032e
tools:iio:generic_buffer: fix check of errno

Since errno contains the value of any of the defined error names, a
negation will not lead to the desired match.

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