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.

Approved by:	re (kib)
This commit is contained in:
Bjoern A. Zeeb 2018-10-17 10:31:08 +00:00
parent 6db7f8e554
commit 0455a92bcb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339407

View File

@ -2123,7 +2123,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.
@ -2136,7 +2136,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;