diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 04e2c823541a..0d5123da3b32 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -509,16 +509,13 @@ do { \ } #define PICKUP_GIANT() \ - PARTIAL_PICKUP_GIANT(); \ -} while (0) - -#define PARTIAL_PICKUP_GIANT() \ mtx_assert(&Giant, MA_NOTOWNED); \ if (__predict_false(_giantcnt > 0)) { \ while (_giantcnt--) \ mtx_lock(&Giant); \ WITNESS_RESTORE(&Giant.lock_object, Giant); \ - } + } \ +} while (0) #endif struct mtx_args {