rtld load_filtees(): reindent and reduce block nesting

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D43858
This commit is contained in:
Konstantin Belousov 2024-02-13 03:19:43 +02:00
parent 9ea864b54b
commit 30b5f6b33b

View file

@ -2582,13 +2582,12 @@ load_filtee1(Obj_Entry *obj, Needed_Entry *needed, int flags,
static void
load_filtees(Obj_Entry *obj, int flags, RtldLockState *lockstate)
{
if (!obj->filtees_loaded) {
if (obj->filtees_loaded)
return;
lock_restart_for_upgrade(lockstate);
load_filtee1(obj, obj->needed_filtees, flags, lockstate);
load_filtee1(obj, obj->needed_aux_filtees, flags, lockstate);
obj->filtees_loaded = true;
}
}
static int