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>
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;
}