Re: [PATCH] PM: sleep: remove unneeded break

From: Rafael J. Wysocki
Date: Thu Oct 22 2020 - 12:48:40 EST


On Mon, Oct 19, 2020 at 10:03 PM <trix@xxxxxxxxxx> wrote:
>
> From: Tom Rix <trix@xxxxxxxxxx>
>
> A break is not needed if it is preceded by a return
>
> Signed-off-by: Tom Rix <trix@xxxxxxxxxx>
> ---
> 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!