kobj: plug set-but-not-used vars

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-12-14 14:52:25 +00:00
parent a90b85dd5a
commit b2835fa22a

View File

@ -156,7 +156,7 @@ kobj_class_compile1(kobj_class_t cls, int mflags)
void
kobj_class_compile(kobj_class_t cls)
{
int error;
int error __diagused;
error = kobj_class_compile1(cls, M_WAITOK);
KASSERT(error == 0, ("kobj_class_compile1 returned %d", error));