Skip to content
Commit e51d8d3e authored by Mario Limonciello's avatar Mario Limonciello Committed by Jiri Kosina
Browse files

HID: amd_sfh: Don't show client init failed as error when discovery fails



When sensor discovery fails, this means that the system doesn't have
any sensors connected and a user should only be notified at most one time.
A message is already displayed at WARN level of "failed to discover,
sensors not enabled".  It's pointless to show that the client init failed
at ERR level for the same condition.

Check the return code and don't display this message in those conditions.

Fixes: b5d7f43e ("HID: amd_sfh: Add support for sensor discovery")
Reported-by: default avatarDavid Chang <David.Chang@amd.com>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Acked-by: default avatarBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent d6b67568
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment