projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b8417c
)
PM: sleep: remove unreachable break
author
Tom Rix
<trix@redhat.com>
Mon, 19 Oct 2020 20:03:30 +0000
(13:03 -0700)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Thu, 22 Oct 2020 16:43:31 +0000
(18:43 +0200)
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>
drivers/base/power/main.c
patch
|
blob
|
history
diff --git
a/drivers/base/power/main.c
b/drivers/base/power/main.c
index 205a06752ca90c4bfe601477cc203c5dc6007302..c7ac49042cee6cbd48d14c205671be28c4e55c86 100644
(file)
--- 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 */