rtemsbsd: Remove unused variable

This commit is contained in:
Kinsey Moore 2024-01-23 14:48:09 -06:00 committed by Joel Sherrill
parent c05a6f545b
commit 3a9f9c6c70

View File

@ -207,13 +207,11 @@ lockmgr_lock_fast_path(struct lock *lk, u_int flags, struct lock_object *ilk,
{ {
uintptr_t x, tid; uintptr_t x, tid;
u_int op; u_int op;
bool locked;
if (__predict_false(panicstr != NULL)) if (__predict_false(panicstr != NULL))
return (0); return (0);
op = flags & LK_TYPE_MASK; op = flags & LK_TYPE_MASK;
locked = false;
switch (op) { switch (op) {
case LK_SHARED: case LK_SHARED:
if (!__predict_false(lk->lock_object.lo_flags & LK_NOSHARE)) if (!__predict_false(lk->lock_object.lo_flags & LK_NOSHARE))