diff options
author | Mario Limonciello <[email protected]> | 2022-05-12 13:18:48 -0500 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2022-05-27 09:07:27 +0200 |
commit | e51d8d3ea3d773334d2c047c8d1623dba66f592a (patch) | |
tree | bffc905c9b8173f9b867a0c65ee738d9ae8e13d7 /tools/perf/scripts/python/syscall-counts.py | |
parent | d6b675687a4ab4dba684716d97c8c6f81bf10905 (diff) |
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: b5d7f43e97da ("HID: amd_sfh: Add support for sensor discovery")
Reported-by: David Chang <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Acked-by: Basavaraj Natikar <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions