git: d1830c75865c - stable/14 - cred: proc_set_cred(): Remove obsolete comments

From: Olivier Certner <olce_at_FreeBSD.org>
Date: Thu, 16 Jan 2025 18:08:29 UTC
The branch stable/14 has been updated by olce:

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

commit d1830c75865c880c895c289e049c6649b20b9a4b
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-08-01 10:19:52 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-01-16 18:06:59 +0000

    cred: proc_set_cred(): Remove obsolete comments
    
    These have been obsoleted since they were first written (in commit
    "cred: add proc_set_cred helper", daf63fd2f9a8d040, r280130) by some
    subsequent commits ("proc: refactor clearing credentials into
    proc_unset_cred", 5a90435ccfed8e1e, r361448; "cred: distribute reference
    count per thread", 1724c563e62fa800, r361993).
    
    No functional change.
    
    Approved by:    markj (mentor)
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D46922
    
    (cherry picked from commit 07c9edac7bcd75095724ff3c91d0aeec792a4f26)
---
 sys/kern/kern_prot.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 3510dc16f731..bf026593a3ee 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -2281,11 +2281,6 @@ cru2xt(struct thread *td, struct xucred *xcr)
  * Change process credentials.
  * Callers are responsible for providing the reference for passed credentials
  * and for freeing old ones.
- *
- * Process has to be locked except when it does not have credentials (as it
- * should not be visible just yet) or when newcred is NULL (as this can be
- * only used when the process is about to be freed, at which point it should
- * not be visible anymore).
  */
 void
 proc_set_cred(struct proc *p, struct ucred *newcred)