FreeBSD/src f183fb1 (r340410)sys/kern kern_mutex.c kern_rwlock.c

locks: plug warnings about unitialized variables

They only showed up after I redefined LOCKSTAT_ENABLED to 0.

doing_lockprof in mutex.c is a real (but harmless) bug. Should the
value be non-zero it will do checks for lock profiling which would
otherwise be skipped.

state in rwlock.c is a wart from the compiler, the value can't be
used if lock profiling is not enabled.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-2sys/kern/kern_mutex.c
+2-2sys/kern/kern_rwlock.c
+4-42 files

UnifiedSplitRaw