platform/x86: dell-ddv: Improve error handling
authorArmin Wolf <W_Armin@gmx.de>
Fri, 7 Jul 2023 01:03:32 +0000 (03:03 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 11 Jul 2023 10:15:30 +0000 (12:15 +0200)
commit8c4893837554687addae919998b0f3de23a514dc
tree66be75e8306c7e46aee50097deb5eed348339472
parent5d3acd9d7a44ad9902e98e57013f028d5f4fc86c
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>
drivers/platform/x86/dell/dell-wmi-ddv.c