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:
parent
6db7f8e554
commit
0455a92bcb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339407
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user