Use 'else' to remove another goto.
This commit is contained in:
parent
73a2437a83
commit
e5bb3a01d7
@ -1764,11 +1764,9 @@ linker_load_module(const char *kldname, const char *modname,
|
||||
* provide different versions of the same modules.
|
||||
*/
|
||||
filename = linker_basename(pathname);
|
||||
if (linker_find_file_by_name(filename)) {
|
||||
if (linker_find_file_by_name(filename))
|
||||
error = EEXIST;
|
||||
goto out;
|
||||
}
|
||||
do {
|
||||
else do {
|
||||
error = linker_load_file(pathname, &lfdep);
|
||||
if (error)
|
||||
break;
|
||||
@ -1786,7 +1784,6 @@ linker_load_module(const char *kldname, const char *modname,
|
||||
if (lfpp)
|
||||
*lfpp = lfdep;
|
||||
} while (0);
|
||||
out:
|
||||
free(pathname, M_LINKER);
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user