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
> ---
>
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
---
2 matches
Mail list logo