On 04/05/15 10:22, Daniel Baluta wrote: > On Sat, May 2, 2015 at 1:29 PM, Jonathan Cameron <jic23@xxxxxxxxxx> wrote: >> Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxxx> >> Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx> >> Cc: Vlad Dogaru <vlad.dogaru@xxxxxxxxx> >> --- >> drivers/iio/proximity/sx9500.c | 4 +--- >> 1 file changed, 1 insertion(+), 3 deletions(-) >> >> diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/proximity/sx9500.c >> index f1e9d734b6b6..323de9510ba5 100644 >> --- a/drivers/iio/proximity/sx9500.c >> +++ b/drivers/iio/proximity/sx9500.c >> @@ -860,10 +860,8 @@ static int sx9500_init_device(struct iio_dev *indio_dev) >> } >> >> ret = sx9500_init_compensation(indio_dev); >> - if (ret < 0) >> - return ret; >> >> - return 0; >> + return ret; >> } > > Or, better directly return sx9500_init_comp... oops. Good point ;) > > Daniel. > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html