mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Remove incorrect sanity-check from wl_map_insert_at
I got a little over-eager with my sanity checks and didn't realize that the client uses wl_map_insert_at to mark objects as zombies when they come from the server-side. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
8fd60c683a
commit
2d586a759e
1 changed files with 0 additions and 6 deletions
|
|
@ -211,14 +211,8 @@ wl_map_insert_at(struct wl_map *map, uint32_t flags, uint32_t i, void *data)
|
||||||
struct wl_array *entries;
|
struct wl_array *entries;
|
||||||
|
|
||||||
if (i < WL_SERVER_ID_START) {
|
if (i < WL_SERVER_ID_START) {
|
||||||
if (map->side == WL_MAP_CLIENT_SIDE)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
entries = &map->client_entries;
|
entries = &map->client_entries;
|
||||||
} else {
|
} else {
|
||||||
if (map->side == WL_MAP_SERVER_SIDE)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
entries = &map->server_entries;
|
entries = &map->server_entries;
|
||||||
i -= WL_SERVER_ID_START;
|
i -= WL_SERVER_ID_START;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue