Message ID | 20201019200330.16629-1-trix@redhat.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
Series | PM: sleep: remove unneeded break | expand |
On Mon, Oct 19, 2020 at 10:03 PM <trix@redhat.com> wrote: > > From: Tom Rix <trix@redhat.com> > > A break is not needed if it is preceded by a return > > Signed-off-by: Tom Rix <trix@redhat.com> > --- > drivers/base/power/main.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c > index 205a06752ca9..c7ac49042cee 100644 > --- a/drivers/base/power/main.c > +++ b/drivers/base/power/main.c > @@ -363,7 +363,6 @@ static pm_callback_t pm_op(const struct dev_pm_ops *ops, pm_message_t state) > case PM_EVENT_THAW: > case PM_EVENT_RECOVER: > return ops->thaw; > - break; > case PM_EVENT_RESTORE: > return ops->restore; > #endif /* CONFIG_HIBERNATE_CALLBACKS */ > -- Applied as 5.10-rc material with edits in the subject and changelog, thanks!
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 205a06752ca9..c7ac49042cee 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -363,7 +363,6 @@ static pm_callback_t pm_op(const struct dev_pm_ops *ops, pm_message_t state) case PM_EVENT_THAW: case PM_EVENT_RECOVER: return ops->thaw; - break; case PM_EVENT_RESTORE: return ops->restore; #endif /* CONFIG_HIBERNATE_CALLBACKS */