Re: [PATCH v2 3/3] iio: adc: hx711: remove unnecessary returns

2019-09-15 Thread Jonathan Cameron
On Mon, 9 Sep 2019 14:38:08 +0200 Andreas Klinger wrote: > Optimize use of return in hx711_set_gain_for_channel(). > > Signed-off-by: Andreas Klinger I agree with Joe on this. Minor reduction in code, but hurts readability so a no on this one. thanks, Jonathan > --- >

[PATCH v2 3/3] iio: adc: hx711: remove unnecessary returns

2019-09-09 Thread Andreas Klinger
Optimize use of return in hx711_set_gain_for_channel(). Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index c8686558429b..20c249f502c0 100644 ---