diff options
author | Armin Wolf <W_Armin@gmx.de> | 2023-07-07 04:03:32 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-07-11 13:15:30 +0300 |
commit | 8c4893837554687addae919998b0f3de23a514dc (patch) | |
tree | 66be75e8306c7e46aee50097deb5eed348339472 /scripts/gdb/linux/utils.py | |
parent | 5d3acd9d7a44ad9902e98e57013f028d5f4fc86c (diff) | |
download | linux-8c4893837554687addae919998b0f3de23a514dc.tar.xz |
platform/x86: dell-ddv: Improve error handling
If for some reason a external function returns -ENODEV,
no error message is being displayed because the driver
assumes that -ENODEV can only be returned internally if
no sensors, etc where found.
Fix this by explicitly returning 0 in such a case since
missing hardware is no error. Also remove the now obsolete
check for -ENODEV.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20230707010333.12954-1-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions