diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-10-30 14:30:02 +0000 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2020-11-12 16:25:40 +0100 |
commit | 6e6eae04f5123b7b2f4265f7a702b5200fa5863b (patch) | |
tree | ef801838ac33be7e46e1a1ffcf48f4be51b89f9d /mm/zbud.c | |
parent | 907286d1420d28bead47da37b9a081377c070322 (diff) |
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: 4b2c53d93a4b ("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>
Diffstat (limited to 'mm/zbud.c')
0 files changed, 0 insertions, 0 deletions