[PATCH rtems-libbsd 6-freebsd-12 5/5] rtemsbsd: Remove unused variable

Kinsey Moore kinsey.moore at oarcorp.com
Tue Jan 23 21:54:56 UTC 2024


---
 rtemsbsd/rtems/rtems-kernel-lockmgr.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/rtemsbsd/rtems/rtems-kernel-lockmgr.c b/rtemsbsd/rtems/rtems-kernel-lockmgr.c
index 518f6831..de5d9d8a 100644
--- a/rtemsbsd/rtems/rtems-kernel-lockmgr.c
+++ b/rtemsbsd/rtems/rtems-kernel-lockmgr.c
@@ -207,13 +207,11 @@ lockmgr_lock_fast_path(struct lock *lk, u_int flags, struct lock_object *ilk,
 {
 	uintptr_t x, tid;
 	u_int op;
-	bool locked;
 
 	if (__predict_false(panicstr != NULL))
 		return (0);
 
 	op = flags & LK_TYPE_MASK;
-	locked = false;
 	switch (op) {
 	case LK_SHARED:
 		if (!__predict_false(lk->lock_object.lo_flags & LK_NOSHARE))
-- 
2.39.2



More information about the devel mailing list