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:
Simon Ser 2024-02-27 12:23:34 +01:00
parent 155dd63b58
commit 830883e5b2

View file

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