mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
connection: simplify wl_closure_lookup_objects() loop
Decrease the indentation a bit. No functional change. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
155dd63b58
commit
830883e5b2
1 changed files with 26 additions and 29 deletions
|
|
@ -906,8 +906,9 @@ wl_closure_lookup_objects(struct wl_closure *closure, struct wl_map *objects)
|
|||
count = arg_count_for_signature(signature);
|
||||
for (i = 0; i < count; i++) {
|
||||
signature = get_next_argument(signature, &arg);
|
||||
switch (arg.type) {
|
||||
case WL_ARG_OBJECT:
|
||||
if (arg.type != WL_ARG_OBJECT)
|
||||
continue;
|
||||
|
||||
id = closure->args[i].n;
|
||||
closure->args[i].o = NULL;
|
||||
|
||||
|
|
@ -934,10 +935,6 @@ wl_closure_lookup_objects(struct wl_closure *closure, struct wl_map *objects)
|
|||
return -1;
|
||||
}
|
||||
closure->args[i].o = object;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue