Skip to content
Commit ef3149eb authored by Luis de Bethencourt's avatar Luis de Bethencourt Committed by Jonathan Cameron
Browse files

staging: iio: accel: fix error check



sca3000_read_ctrl_reg() returns a negative number on failure, check for
this instead of zero.

Signed-off-by: default avatarLuis de Bethencourt <luisbg@osg.samsung.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent df013212
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment