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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user