summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-10-19 22:03:30 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-10-22 18:43:31 +0200
commitd298787dbbab5f7ada97c292e19c5c6e55fda6cd (patch)
tree7979d3e66b46c1facebc3195bea43e45c08ccd48 /drivers/base
parentMerge tag 'pm-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafa... (diff)
downloadlinux-d298787dbbab5f7ada97c292e19c5c6e55fda6cd.tar.xz
linux-d298787dbbab5f7ada97c292e19c5c6e55fda6cd.zip
PM: sleep: remove unreachable break
A break following a return statement is pointless, so drop it. Signed-off-by: Tom Rix <trix@redhat.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/main.c1
1 files changed, 0 insertions, 1 deletions
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 */