ipc: fixes warnings introduce in !2249

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140>
This commit is contained in:
Simon Zeni 2024-06-13 14:36:14 -04:00
parent f579e84c53
commit 5a61a8c3ab
2 changed files with 1 additions and 2 deletions

View file

@ -198,7 +198,6 @@ create_localspace(volatile struct ipc_client_state *ics, uint32_t *out_local_id)
return xret;
}
struct xrt_space *xs = NULL;
struct xrt_space_overseer *xso = ics->server->xso;
struct xrt_space **xs_ptr = (struct xrt_space **)&ics->xspcs[id];

View file

@ -67,7 +67,7 @@ common_shutdown(volatile struct ipc_client_state *ics)
xrt_space_reference((struct xrt_space **)&ics->xspcs[i], NULL);
}
if (ics->local_space_overseer_index < IPC_MAX_CLIENT_SPACES && ics->local_space_overseer_index >= 0) {
if (ics->local_space_overseer_index < IPC_MAX_CLIENT_SPACES) {
xrt_space_reference((struct xrt_space **)&ics->server->xso->localspace[ics->local_space_overseer_index],
NULL);
}