summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorKirill Yatsenko <kiriyatsenko@gmail.com>2023-05-11 22:26:32 +0200
committerGuenter Roeck <linux@roeck-us.net>2023-06-08 06:41:18 -0700
commit014714b8a62107d22bd2a089801bbfb4bb6412ae (patch)
treec74a8042d713a5e43791c96a9a4b3cefd12ae05b /drivers/pci
parent0cb01ec31529096b6460290963bf78c9146d83b7 (diff)
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>
Diffstat (limited to 'drivers/pci')
0 files changed, 0 insertions, 0 deletions