File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -959,14 +959,15 @@ static int __maybe_unused dwc3_qcom_pm_suspend(struct device *dev)
959959{
960960 struct dwc3_qcom * qcom = dev_get_drvdata (dev );
961961 bool wakeup = device_may_wakeup (dev );
962- int ret = 0 ;
963-
962+ int ret ;
964963
965964 ret = dwc3_qcom_suspend (qcom , wakeup );
966- if (! ret )
967- qcom -> pm_suspended = true ;
965+ if (ret )
966+ return ret ;
968967
969- return ret ;
968+ qcom -> pm_suspended = true;
969+
970+ return 0 ;
970971}
971972
972973static int __maybe_unused dwc3_qcom_pm_resume (struct device * dev )
@@ -976,10 +977,12 @@ static int __maybe_unused dwc3_qcom_pm_resume(struct device *dev)
976977 int ret ;
977978
978979 ret = dwc3_qcom_resume (qcom , wakeup );
979- if (! ret )
980- qcom -> pm_suspended = false ;
980+ if (ret )
981+ return ret ;
981982
982- return ret ;
983+ qcom -> pm_suspended = false;
984+
985+ return 0 ;
983986}
984987
985988static int __maybe_unused dwc3_qcom_runtime_suspend (struct device * dev )
You can’t perform that action at this time.
0 commit comments