MAC/do: check_proc(): Remove a superfluous 'if'
No functional change (intended). Reviewed by: bapt MFC after: 1 month Sponsored by: The FreeBSD Foundation Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/38
This commit is contained in:
@@ -2303,12 +2303,11 @@ check_proc(void)
|
||||
conf = find_conf(td_pr, &pr);
|
||||
exec_paths = &conf->exec_paths;
|
||||
|
||||
if (exec_paths->exec_path_count > 0)
|
||||
for (int i = 0; i < exec_paths->exec_path_count; i++)
|
||||
if (strcmp(exec_paths->exec_paths[i], path) == 0) {
|
||||
error = 0;
|
||||
break;
|
||||
}
|
||||
for (int i = 0; i < exec_paths->exec_path_count; i++)
|
||||
if (strcmp(exec_paths->exec_paths[i], path) == 0) {
|
||||
error = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
prison_unlock(pr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user