Date: Sat, 19 May 2018 03:58:40 +0000 (UTC) From: Matt Macy <mmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333835 - head/sys/kern Message-ID: <201805190358.w4J3wes8016924@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmacy Date: Sat May 19 03:58:40 2018 New Revision: 333835 URL: https://svnweb.freebsd.org/changeset/base/333835 Log: remove unused locked variable in lockmgr_unlock_fast_path Modified: head/sys/kern/kern_lock.c Modified: head/sys/kern/kern_lock.c ============================================================================== --- head/sys/kern/kern_lock.c Sat May 19 03:57:41 2018 (r333834) +++ head/sys/kern/kern_lock.c Sat May 19 03:58:40 2018 (r333835) @@ -1101,7 +1101,6 @@ lockmgr_unlock_fast_path(struct lock *lk, u_int flags, { struct lock_class *class; uintptr_t x, tid; - bool unlocked; const char *file; int line; @@ -1112,12 +1111,10 @@ lockmgr_unlock_fast_path(struct lock *lk, u_int flags, line = __LINE__; _lockmgr_assert(lk, KA_LOCKED, file, line); - unlocked = false; x = lk->lk_lock; if (__predict_true(x & LK_SHARE) != 0) { if (lockmgr_sunlock_try(lk, &x)) { lockmgr_note_shared_release(lk, file, line); - unlocked = true; } else { return (lockmgr_sunlock_hard(lk, x, flags, ilk, file, line)); } @@ -1126,7 +1123,6 @@ lockmgr_unlock_fast_path(struct lock *lk, u_int flags, if (!lockmgr_recursed(lk) && atomic_cmpset_rel_ptr(&lk->lk_lock, tid, LK_UNLOCKED)) { lockmgr_note_exclusive_release(lk, file, line); - unlocked = true; } else { return (lockmgr_xunlock_hard(lk, x, flags, ilk, file, line)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805190358.w4J3wes8016924>