staging: iio: accel: add error check
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Wed, 22 Jun 2016 19:43:31 +0000 (20:43 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Jun 2016 19:59:10 +0000 (20:59 +0100)
commitaea7b1dc2bb7405f2d7827b202788fbee3912c1a
tree337e0418da36a750e180ae29a0965428dabf4429
parent7feae871b263b509625b3bf946d4f1d72bb77c70
staging: iio: accel: add error check

Go to error_ret if sca3000_read_ctrl_reg() failed.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/accel/sca3000_core.c