Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2018 14:10:29 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r340052 - stable/11/sys/kern
Message-ID:  <201811021410.wA2EAT78041632@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Fri Nov  2 14:10:29 2018
New Revision: 340052
URL: https://svnweb.freebsd.org/changeset/base/340052

Log:
  MFC r339407:
  
    The countp argument passed to linker_file_lookup_set() in
    linker_load_dependencies() is unused, so no need to ask for the
    value in first place.  Remove the unused "count" variable.

Modified:
  stable/11/sys/kern/kern_linker.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_linker.c
==============================================================================
--- stable/11/sys/kern/kern_linker.c	Fri Nov  2 14:07:06 2018	(r340051)
+++ stable/11/sys/kern/kern_linker.c	Fri Nov  2 14:10:29 2018	(r340052)
@@ -2084,7 +2084,7 @@ linker_load_dependencies(linker_file_t lf)
 	const struct mod_depend *verinfo;
 	modlist_t mod;
 	const char *modname, *nmodname;
-	int ver, error = 0, count;
+	int ver, error = 0;
 
 	/*
 	 * All files are dependent on /kernel.
@@ -2097,7 +2097,7 @@ linker_load_dependencies(linker_file_t lf)
 			return (error);
 	}
 	if (linker_file_lookup_set(lf, MDT_SETNAME, &start, &stop,
-	    &count) != 0)
+	    NULL) != 0)
 		return (0);
 	for (mdp = start; mdp < stop; mdp++) {
 		mp = *mdp;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811021410.wA2EAT78041632>