iio.c: Check return of fd before using ioctl
authorBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 21 Dec 2015 15:48:28 +0000 (15:48 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 21 Dec 2015 15:48:28 +0000 (15:48 +0000)
commite98bd8653a1d8d7500ae751b8c6f4ca455f4e48a
tree3004dcc9031dbf68f4fd21889bdc314a17ed63f8
parentff346513255844194472fac4cdd8772937b8665f
iio.c: Check return of fd before using ioctl

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/iio/iio.c