Skip to content

Commit

Permalink
Remove redundant guard
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Nov 20, 2024
1 parent 3a20d37 commit 698c9e3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions esp-hal/src/rmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,6 @@ mod impl_for_chip {
/// RMT Channel 3.
pub channel3: ChannelCreator<M, 3>,
phantom: PhantomData<M>,
_guard: PeripheralGuard,
}

impl<'d, M> Rmt<'d, M>
Expand All @@ -632,8 +631,6 @@ mod impl_for_chip {
) -> Self {
crate::into_ref!(peripheral);

let guard = PeripheralGuard::new(crate::system::Peripheral::Rmt);

Self {
peripheral,
channel0: ChannelCreator {
Expand All @@ -653,7 +650,6 @@ mod impl_for_chip {
_guard: PeripheralGuard::new(crate::system::Peripheral::Rmt),
},
phantom: PhantomData,
_guard: guard,
}
}
}
Expand Down Expand Up @@ -712,7 +708,6 @@ mod impl_for_chip {
/// RMT Channel 7.
pub channel7: ChannelCreator<M, 7>,
phantom: PhantomData<M>,
_guard: PeripheralGuard,
}

impl<'d, M> Rmt<'d, M>
Expand All @@ -723,8 +718,6 @@ mod impl_for_chip {
peripheral: impl Peripheral<P = crate::peripherals::RMT> + 'd,
) -> Self {
crate::into_ref!(peripheral);
let guard = PeripheralGuard::new(crate::system::Peripheral::Rmt);

Self {
peripheral,
channel0: ChannelCreator {
Expand Down Expand Up @@ -760,7 +753,6 @@ mod impl_for_chip {
_guard: PeripheralGuard::new(crate::system::Peripheral::Rmt),
},
phantom: PhantomData,
_guard: guard,
}
}
}
Expand Down Expand Up @@ -835,7 +827,6 @@ mod impl_for_chip {
/// RMT Channel 3.
pub channel3: ChannelCreator<M, 3>,
phantom: PhantomData<M>,
_guard: PeripheralGuard,
}

impl<'d, M> Rmt<'d, M>
Expand Down Expand Up @@ -866,7 +857,6 @@ mod impl_for_chip {
_guard: PeripheralGuard::new(crate::system::Peripheral::Rmt),
},
phantom: PhantomData,
_guard: PeripheralGuard::new(crate::system::Peripheral::Rmt),
}
}
}
Expand Down Expand Up @@ -933,7 +923,6 @@ mod impl_for_chip {
/// RMT Channel 7.
pub channel7: ChannelCreator<M, 7>,
phantom: PhantomData<M>,
_guard: PeripheralGuard,
}

impl<'d, M> Rmt<'d, M>
Expand Down Expand Up @@ -980,7 +969,6 @@ mod impl_for_chip {
_guard: PeripheralGuard::new(crate::system::Peripheral::Rmt),
},
phantom: PhantomData,
_guard: PeripheralGuard::new(crate::system::Peripheral::Rmt),
}
}
}
Expand Down

0 comments on commit 698c9e3

Please sign in to comment.