The branch main has been updated by mjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=29ee49f66bb166f36424f4d2968b21bf7d573fa0

commit 29ee49f66bb166f36424f4d2968b21bf7d573fa0
Author:     Mateusz Guzik <[email protected]>
AuthorDate: 2022-02-12 19:28:57 +0000
Commit:     Mateusz Guzik <[email protected]>
CommitDate: 2022-02-13 13:07:08 +0000

    thread: remove dead store from thread_cow_update
---
 sys/kern/kern_thread.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index bb724a17803e..57d235c002f0 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -856,7 +856,6 @@ thread_cow_update(struct thread *td)
        struct plimit *oldlimit;
 
        p = td->td_proc;
-       oldlimit = NULL;
        PROC_LOCK(p);
        oldcred = crcowsync();
        oldlimit = lim_cowsync();

Reply via email to