Thread (42 messages) 42 messages, 13 authors, 2025-03-13

Re: [PATCH *-next 14/18] PM: wakeup: Remove needless return in three void APIs

From: "Rafael J. Wysocki" <rafael@kernel.org>
Date: 2025-02-26 17:06:39
Also in: linux-arch, linux-crypto, linux-gpio, linux-iommu, linux-mm, linux-pm, linux-rdma, linux-wireless, lkml

On Fri, Feb 21, 2025 at 2:03 PM Zijun Hu [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Remove needless 'return' in the following void APIs:

 __pm_wakeup_event()
 pm_wakeup_event()
 pm_wakeup_hard_event()

Since both the API and callee involved are void functions.

Signed-off-by: Zijun Hu <redacted>
---
 include/linux/pm_wakeup.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/pm_wakeup.h b/include/linux/pm_wakeup.h
index d501c09c60cd..51e0e8dd5f9e 100644
--- a/include/linux/pm_wakeup.h
+++ b/include/linux/pm_wakeup.h
@@ -205,17 +205,17 @@ static inline void device_set_awake_path(struct device *dev)

 static inline void __pm_wakeup_event(struct wakeup_source *ws, unsigned int msec)
 {
-       return pm_wakeup_ws_event(ws, msec, false);
+       pm_wakeup_ws_event(ws, msec, false);
 }

 static inline void pm_wakeup_event(struct device *dev, unsigned int msec)
 {
-       return pm_wakeup_dev_event(dev, msec, false);
+       pm_wakeup_dev_event(dev, msec, false);
 }

 static inline void pm_wakeup_hard_event(struct device *dev)
 {
-       return pm_wakeup_dev_event(dev, 0, true);
+       pm_wakeup_dev_event(dev, 0, true);
 }

 /**

--
Applied as 6.15 material, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help