Skip to content

Commit

Permalink
Remove self mutability on apic function
Browse files Browse the repository at this point in the history
No need for mutability here.

Signed-off-by: Dionna Glaze <[email protected]>
  • Loading branch information
deeglaze committed Jul 26, 2024
1 parent 0e7d5d1 commit 01d9d47
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kernel/src/cpu/apic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,7 @@ impl LocalApic {
Some(calling_area)
}

fn deliver_interrupt_immediately<T: GuestCpuState>(
&mut self,
irq: u8,
cpu_state: &mut T,
) -> bool {
fn deliver_interrupt_immediately<T: GuestCpuState>(&self, irq: u8, cpu_state: &mut T) -> bool {
if !cpu_state.interrupts_enabled() || cpu_state.in_intr_shadow() {
false
} else {
Expand Down

0 comments on commit 01d9d47

Please sign in to comment.