mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-24 09:10:42 +01:00
panfrost: Remove duplicate variable ret
Fix defect reported by Coverity Scan.
Evaluation order violation (EVALUATION_ORDER)
write_write_typo:
In ret = ret = ({...; drmIoctl(panfrost_device_fd(dev), 3221775434UL, &args);}),
ret is written twice with the same value.
Fixes: e9aedfe508 ("panfrost: Support JM context creation and destruction")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37708>
This commit is contained in:
parent
cb822a323f
commit
69becc0509
1 changed files with 3 additions and 3 deletions
|
|
@ -1057,9 +1057,9 @@ GENX(jm_init_context)(struct panfrost_context *ctx)
|
|||
.priority = prio,
|
||||
};
|
||||
|
||||
int ret = ret = pan_kmod_ioctl(panfrost_device_fd(dev),
|
||||
DRM_IOCTL_PANFROST_JM_CTX_CREATE,
|
||||
&args);
|
||||
int ret = pan_kmod_ioctl(panfrost_device_fd(dev),
|
||||
DRM_IOCTL_PANFROST_JM_CTX_CREATE,
|
||||
&args);
|
||||
if (ret)
|
||||
return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue