Commit 0c339d7
committed
platform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc()
JIRA: https://issues.redhat.com/browse/RHEL-105420
commit d7186df
Author: Mario Limonciello <[email protected]>
Date: Wed May 21 19:34:57 2025 -0500
platform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc()
commit 5b1122f ("platform/x86/amd/pmf: fix cleanup in
amd_pmf_init_smart_pc()") adjusted the error handling flow to use a ladder
but this isn't actually needed because work is only scheduled in
amd_pmf_start_policy_engine() and with device managed cleanups pointers
for allocations don't need to be freed.
Adjust the error flow to a single call to amd_pmf_deinit_smart_pc() for
the cases that need to clean up.
Cc: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mario Limonciello <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Signed-off-by: David Arcari <[email protected]>1 parent 4499618 commit 0c339d7
1 file changed
+16
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
| 536 | + | |
| 537 | + | |
540 | 538 | | |
541 | 539 | | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
| 540 | + | |
| 541 | + | |
546 | 542 | | |
547 | 543 | | |
548 | 544 | | |
549 | 545 | | |
550 | 546 | | |
551 | | - | |
552 | | - | |
| 547 | + | |
553 | 548 | | |
554 | 549 | | |
555 | 550 | | |
556 | 551 | | |
557 | 552 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
| 553 | + | |
| 554 | + | |
562 | 555 | | |
563 | 556 | | |
564 | 557 | | |
565 | 558 | | |
566 | | - | |
| 559 | + | |
567 | 560 | | |
568 | 561 | | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
| 562 | + | |
| 563 | + | |
584 | 564 | | |
585 | 565 | | |
| 566 | + | |
586 | 567 | | |
587 | 568 | | |
588 | 569 | | |
589 | 570 | | |
590 | | - | |
| 571 | + | |
591 | 572 | | |
592 | 573 | | |
593 | 574 | | |
594 | 575 | | |
595 | 576 | | |
596 | 577 | | |
597 | 578 | | |
598 | | - | |
| 579 | + | |
599 | 580 | | |
600 | 581 | | |
601 | 582 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
| 583 | + | |
| 584 | + | |
608 | 585 | | |
609 | 586 | | |
610 | 587 | | |
| |||
0 commit comments