Skip to content
Commit 014714b8 authored by Kirill Yatsenko's avatar Kirill Yatsenko Committed by Guenter Roeck
Browse files

hwmon: (aht10) Refactor aht10_read_values function



Exit from the function immediately if the poll time hasn't yet expired.
Therefore the code after the check can be moved one tab to the left which
improves readability.

Signed-off-by: default avatarKirill Yatsenko <kiriyatsenko@gmail.com>
Link: https://lore.kernel.org/r/20230511202633.299174-2-kiriyatsenko@gmail.com


[groeck: Dropped else after return]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 0cb01ec3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment