FAT: Just use braces in lockmgr_assert.
Otherwise we encounter a different problem under KDEBUG_LEVEL=2.
This commit is contained in:
@@ -72,10 +72,11 @@ static inline void
|
|||||||
lockmgr_assert(const struct lock* lk, int what)
|
lockmgr_assert(const struct lock* lk, int what)
|
||||||
{
|
{
|
||||||
#ifndef FS_SHELL
|
#ifndef FS_SHELL
|
||||||
if (what == KA_XLOCKED)
|
if (what == KA_XLOCKED) {
|
||||||
ASSERT_WRITE_LOCKED_RW_LOCK(&lk->haikuRW);
|
ASSERT_WRITE_LOCKED_RW_LOCK(&lk->haikuRW);
|
||||||
else
|
} else {
|
||||||
panic("lockmgr_assert: unrecognized flag\n");
|
panic("lockmgr_assert: unrecognized flag\n");
|
||||||
|
}
|
||||||
#endif // !FS_SHELL
|
#endif // !FS_SHELL
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user