git: b6fe00dd31df - stable/15 - stand: Remove a pointless goto

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 08 Oct 2026 20:43:57 UTC
The branch stable/15 has been updated by jhb:

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

commit b6fe00dd31df0fd37c2fbf426ba86db8ca21729f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-07-31 17:50:33 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-10-08 20:42:32 +0000

    stand: Remove a pointless goto
    
    Commit 505222d35fea removed a batch of code that this goto used to skip
    around.
    
    Reviewed by:    olce, kib, markj
    Fixes:          505222d35fea ("Implement the long-awaited module->file cache database.  A userland tool (kldxref(8)) keeps a cache of what modules and versions are inside what .ko files.  I have tested this on both Alpha and i386.")
    Differential Revision:  https://reviews.freebsd.org/D58539
    (cherry picked from commit 8aec309852b5285cfa03424f7776a0bf432dff7a)
---
 stand/common/load_elf.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/stand/common/load_elf.c b/stand/common/load_elf.c
index 1b5f1daded09..786748c940bb 100644
--- a/stand/common/load_elf.c
+++ b/stand/common/load_elf.c
@@ -920,9 +920,6 @@ nosyms:
 	if (__elfN(parse_modmetadata)(fp, ef, p_start, p_end) == 0)
 		goto out;
 
-	if (ef->kernel)		/* kernel must not depend on anything */
-		goto out;
-
 out:
 	if (dp)
 		free(dp);