Change-Id: If7d4d517c519f6d41c6bde7a7716edda4cd6a25a
Signed-off-by: Segwon <segwon.han@samsung.com>
xfer.len = length;
ret = ioctl(spi->fd, SPI_IOC_MESSAGE(1), &xfer);
- CHECK_ERROR(ret != 0);
+ CHECK_ERROR(ret < 0);
return PERIPHERAL_ERROR_NONE;
}
xfer.len = length;
ret = ioctl(spi->fd, SPI_IOC_MESSAGE(1), &xfer);
- CHECK_ERROR(ret != 0);
+ CHECK_ERROR(ret < 0);
return PERIPHERAL_ERROR_NONE;
}
xfer.len = length;
ret = ioctl(spi->fd, SPI_IOC_MESSAGE(1), &xfer);
- CHECK_ERROR(ret != 0);
+ CHECK_ERROR(ret < 0);
return PERIPHERAL_ERROR_NONE;
}