bootspec: simplify find_default_boot_entry()

If the only caller passes NULL for the two paths, let's remove the
parameter altogether.
This commit is contained in:
Lennart Poettering
2019-03-05 16:50:58 +01:00
parent c943e95f89
commit 5b1da1ba6d
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -3535,7 +3535,7 @@ static int load_kexec_kernel(void) {
if (access(KEXEC, X_OK) < 0)
return log_error_errno(errno, KEXEC" is not available: %m");
r = find_default_boot_entry(NULL, NULL, &config, &e);
r = find_default_boot_entry(&config, &e);
if (r < 0)
return r;