git: 29ee49f66bb1 - main - thread: remove dead store from thread_cow_update

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Sun, 13 Feb 2022 13:07:14 UTC
The branch main has been updated by mjg:

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

commit 29ee49f66bb166f36424f4d2968b21bf7d573fa0
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-02-12 19:28:57 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
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();