iio: accel: kxsd9: fix the usage of spi_w8r8()
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 17 Jun 2016 13:22:24 +0000 (15:22 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 26 Jun 2016 16:32:19 +0000 (17:32 +0100)
commit0c1f91b98552da49d9d8eed32b3132a58d2f4598
tree5151324158524f09fed55cacca982cec037de019
parentef3149eb3ddb7f9125e11c90f8330e371b55cffd
iio: accel: kxsd9: fix the usage of spi_w8r8()

These two spi_w8r8() calls return a value with is used by the code
following the error check. The dubious use was caused by a cleanup
patch.

Fixes: d34dbee8ac8e ("staging:iio:accel:kxsd9 cleanup and conversion to iio_chan_spec.")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/kxsd9.c