xiaoxiang781216 commented on code in PR #22456:
URL: https://github.com/apache/nuttx/pull/22456#discussion_r4715375602


##########
drivers/power/pm/pm_runtime.c:
##########
@@ -188,6 +189,7 @@ void pm_runtime_init(FAR struct pm_runtime_s *rpm, 
rpm_state_e state,
   DEBUGASSERT(rpm != NULL && ops != NULL);
   DEBUGASSERT(state == RPM_ACTIVE || state == RPM_SUSPENDED);
   nxrmutex_init(&rpm->lock);
+  memset(&rpm->suspend_work, 0, sizeof(rpm->suspend_work));

Review Comment:
   let' zero the whole struct and remove line 193-194



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to