Re: [PATCH 10/15] iio: sx9310: Simplify error return handling

2020-07-28 Thread Daniel Campello
On Tue, Jul 28, 2020 at 3:32 PM Stephen Boyd wrote: > > Quoting Daniel Campello (2020-07-28 14:23:29) > > On Tue, Jul 28, 2020 at 1:40 PM Stephen Boyd wrote: > > > > > > Quoting Daniel Campello (2020-07-28 08:12:53) > > > > @@ -368,13 +368,13 @@ static int sx9310_wait_for_sample(struct > > > >

Re: [PATCH 10/15] iio: sx9310: Simplify error return handling

2020-07-28 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 14:23:29) > On Tue, Jul 28, 2020 at 1:40 PM Stephen Boyd wrote: > > > > Quoting Daniel Campello (2020-07-28 08:12:53) > > > @@ -368,13 +368,13 @@ static int sx9310_wait_for_sample(struct > > > sx9310_data *data) > > > static int sx9310_read_proximity(struct

Re: [PATCH 10/15] iio: sx9310: Simplify error return handling

2020-07-28 Thread Daniel Campello
On Tue, Jul 28, 2020 at 1:40 PM Stephen Boyd wrote: > > Quoting Daniel Campello (2020-07-28 08:12:53) > > @@ -368,13 +368,13 @@ static int sx9310_wait_for_sample(struct sx9310_data > > *data) > > static int sx9310_read_proximity(struct sx9310_data *data, > >

Re: [PATCH 10/15] iio: sx9310: Simplify error return handling

2020-07-28 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 08:12:53) > @@ -368,13 +368,13 @@ static int sx9310_wait_for_sample(struct sx9310_data > *data) > static int sx9310_read_proximity(struct sx9310_data *data, > const struct iio_chan_spec *chan, int *val) > { > - int ret =

Re: [PATCH 10/15] iio: sx9310: Simplify error return handling

2020-07-28 Thread Andy Shevchenko
On Tue, Jul 28, 2020 at 6:14 PM Daniel Campello wrote: > > Checks for non-zero return values to signal error conditions. Reviewed-by: Andy Shevchenko > Signed-off-by: Daniel Campello > --- > > drivers/iio/proximity/sx9310.c | 52 +- > 1 file changed, 26

[PATCH 10/15] iio: sx9310: Simplify error return handling

2020-07-28 Thread Daniel Campello
Checks for non-zero return values to signal error conditions. Signed-off-by: Daniel Campello --- drivers/iio/proximity/sx9310.c | 52 +- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/drivers/iio/proximity/sx9310.c