nrf: Remove useless returns
This commit is contained in:
@ -175,7 +175,7 @@ impl<'d, T: Instance> Qdec<'d, T> {
|
|||||||
poll_fn(|cx| {
|
poll_fn(|cx| {
|
||||||
T::state().waker.register(cx.waker());
|
T::state().waker.register(cx.waker());
|
||||||
if t.events_reportrdy.read().bits() == 0 {
|
if t.events_reportrdy.read().bits() == 0 {
|
||||||
return Poll::Pending;
|
Poll::Pending
|
||||||
} else {
|
} else {
|
||||||
t.events_reportrdy.reset();
|
t.events_reportrdy.reset();
|
||||||
let acc = t.accread.read().bits();
|
let acc = t.accread.read().bits();
|
||||||
|
@ -83,7 +83,7 @@ impl<'d> Temp<'d> {
|
|||||||
let value = poll_fn(|cx| {
|
let value = poll_fn(|cx| {
|
||||||
WAKER.register(cx.waker());
|
WAKER.register(cx.waker());
|
||||||
if t.events_datardy.read().bits() == 0 {
|
if t.events_datardy.read().bits() == 0 {
|
||||||
return Poll::Pending;
|
Poll::Pending
|
||||||
} else {
|
} else {
|
||||||
t.events_datardy.reset();
|
t.events_datardy.reset();
|
||||||
let raw = t.temp.read().bits();
|
let raw = t.temp.read().bits();
|
||||||
|
Reference in New Issue
Block a user