mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-08 05:34:36 -04:00
connection: remove redundant assignment
the code is something like:
if (object == NULL && ...) {
object = NULL;
return;
}
first, the object is already NULL, second, the assignment has no effect
since we return from the function right away
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
70850643f3
commit
85b80f5cf0
1 changed files with 0 additions and 1 deletions
|
|
@ -838,7 +838,6 @@ wl_closure_lookup_objects(struct wl_closure *closure, struct wl_map *objects)
|
||||||
} else if (object == NULL && id != 0) {
|
} else if (object == NULL && id != 0) {
|
||||||
wl_log("unknown object (%u), message %s(%s)\n",
|
wl_log("unknown object (%u), message %s(%s)\n",
|
||||||
id, message->name, message->signature);
|
id, message->name, message->signature);
|
||||||
object = NULL;
|
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue