mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 14:30:22 +01:00
turnip: Fix file descriptor return.
Fix defect reported by Coverity Scan. Logically dead code (DEADCODE) dead_error_line: Execution cannot reach the expression -1 inside this statement: return ret ? -1 : handle.fd; Fixes:cec0bc73e5("turnip: rework fences to use syncobjs") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Jonathan Marek <jonathan@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7498> (cherry picked from commitdad6b62576)
This commit is contained in:
parent
0724abde7a
commit
cdb5bcc059
2 changed files with 1 additions and 3 deletions
|
|
@ -454,7 +454,7 @@
|
|||
"description": "turnip: Fix file descriptor return.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "cec0bc73e550859635a71d330625bccdf71e87ee"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -913,8 +913,6 @@ tu_syncobj_to_fd(struct tu_device *device, struct tu_syncobj *sync)
|
|||
int ret;
|
||||
|
||||
ret = ioctl(device->fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &handle);
|
||||
if (ret)
|
||||
return 0;
|
||||
|
||||
return ret ? -1 : handle.fd;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue