linux-stable/drivers/hid/amd-sfh-hid
Colin Ian King 6e6eae04f5 SFH: fix error return check for -ERESTARTSYS
Currently the check for the error return code -ERESTARTSYS is dead code
and never executed because a previous check for ret < 0 is catching this
and returning -ETIMEDOUT instead.  Fix this by checking for -ERESTARTSYS
before the more generic negative error code.

Addresses-Coverity: ("Logically dead code")
Fixes: 4b2c53d93a ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Sandeep Singh <sandeep.singh@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2020-11-12 16:25:40 +01:00
..
hid_descriptor AMD_SFH: Fix for incorrect Sensor index 2020-10-29 16:02:29 +01:00
amd_sfh_client.c
amd_sfh_hid.c SFH: fix error return check for -ERESTARTSYS 2020-11-12 16:25:40 +01:00
amd_sfh_hid.h
amd_sfh_pcie.c AMD_SFH: Fix for incorrect Sensor index 2020-10-29 16:02:29 +01:00
amd_sfh_pcie.h
Kconfig
Makefile