mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
client: Simplify some logic in queue_event
Both the blocks in this if/else clause do the same thing, so combine the comparisons into one. No functional change. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
971a9e7873
commit
56696e5148
1 changed files with 1 additions and 4 deletions
|
|
@ -1228,10 +1228,7 @@ queue_event(struct wl_display *display, int len)
|
|||
return 0;
|
||||
|
||||
proxy = wl_map_lookup(&display->objects, id);
|
||||
if (proxy == WL_ZOMBIE_OBJECT) {
|
||||
wl_connection_consume(display->connection, size);
|
||||
return size;
|
||||
} else if (proxy == NULL) {
|
||||
if (!proxy || proxy == WL_ZOMBIE_OBJECT) {
|
||||
wl_connection_consume(display->connection, size);
|
||||
return size;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue