mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
zink: Do not shadow the variable ret
Allows to actually return `true` when requested. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27259>
This commit is contained in:
parent
edc56f944a
commit
86aef4a3c4
1 changed files with 2 additions and 2 deletions
|
|
@ -2347,8 +2347,8 @@ zink_screen_import_dmabuf_semaphore(struct zink_screen *screen, struct zink_reso
|
|||
.flags = DMA_BUF_SYNC_RW,
|
||||
.fd = sync_file_fd,
|
||||
};
|
||||
int ret = drmIoctl(fd, DMA_BUF_IOCTL_IMPORT_SYNC_FILE, &import);
|
||||
if (ret) {
|
||||
int ioctl_ret = drmIoctl(fd, DMA_BUF_IOCTL_IMPORT_SYNC_FILE, &import);
|
||||
if (ioctl_ret) {
|
||||
if (errno == ENOTTY || errno == EBADF || errno == ENOSYS) {
|
||||
assert(!"how did this fail?");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue