hwmon: (aht10) Refactor aht10_read_values function
authorKirill Yatsenko <kiriyatsenko@gmail.com>
Thu, 11 May 2023 20:26:32 +0000 (22:26 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 8 Jun 2023 13:41:18 +0000 (06:41 -0700)
commit014714b8a62107d22bd2a089801bbfb4bb6412ae
treec74a8042d713a5e43791c96a9a4b3cefd12ae05b
parent0cb01ec31529096b6460290963bf78c9146d83b7
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: Kirill Yatsenko <kiriyatsenko@gmail.com>
Link: https://lore.kernel.org/r/20230511202633.299174-2-kiriyatsenko@gmail.com
[groeck: Dropped else after return]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/aht10.c