Re: [PATCH 1/2] staging: iio: accel: fix error check

2016-05-31 Thread Luis de Bethencourt
On 31/05/16 22:08, Luis de Bethencourt wrote: > sca3000_read_ctrl_reg() returns a negative number on failure, check for > this instead of zero. > > Signed-off-by: Luis de Bethencourt > Reviewed-by: Andrew F. Davis > Reviewed-by: Jonathan Cameron > --- > > Patch corrected thanks to comments fro

[PATCH 1/2] staging: iio: accel: fix error check

2016-05-31 Thread Luis de Bethencourt
sca3000_read_ctrl_reg() returns a negative number on failure, check for this instead of zero. Signed-off-by: Luis de Bethencourt Reviewed-by: Andrew F. Davis Reviewed-by: Jonathan Cameron --- Patch corrected thanks to comments from Andrew F. Davis and Jonathan Cameron. https://lkml.org/lkml/20