FAT: Just use braces in lockmgr_assert.

Otherwise we encounter a different problem under KDEBUG_LEVEL=2.
This commit is contained in:
Augustin Cavalier
2024-07-30 13:02:44 -04:00
parent f99ca9a5a2
commit be4e927eed
@@ -72,10 +72,11 @@ static inline void
lockmgr_assert(const struct lock* lk, int what)
{
#ifndef FS_SHELL
if (what == KA_XLOCKED)
if (what == KA_XLOCKED) {
ASSERT_WRITE_LOCKED_RW_LOCK(&lk->haikuRW);
else
panic("lockmgr_assert: unrecognized flag\n");
} else {
panic("lockmgr_assert: unrecognized flag\n");
}
#endif // !FS_SHELL
return;