File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ pub fn system_table() -> NonNull<SystemTable<Boot>> {
78
78
///
79
79
/// This must be called as early as possible,
80
80
/// before trying to use logging or memory allocation capabilities.
81
- pub fn init ( st : & mut SystemTable < Boot > ) -> Result {
81
+ pub fn init ( st : & mut SystemTable < Boot > ) -> Result < Option < Event > > {
82
82
unsafe {
83
83
// Avoid double initialization.
84
84
if SYSTEM_TABLE . is_some ( ) {
85
- return Status :: SUCCESS . to_result ( ) ;
85
+ return Status :: SUCCESS . to_result_with_val ( || None ) ;
86
86
}
87
87
88
88
// Setup the system table singleton
@@ -104,7 +104,7 @@ pub fn init(st: &mut SystemTable<Boot>) -> Result {
104
104
Some ( exit_boot_services) ,
105
105
None ,
106
106
)
107
- . map ( |_| ( ) )
107
+ . map ( Some )
108
108
}
109
109
}
110
110
You can’t perform that action at this time.
0 commit comments