Commit e54b1dc
ACPI: APEI: EINJ: Remove redundant calls to einj_get_available_error_type()
A single call to einj_get_available_error_type() in init function is
sufficient to save the return value in a global variable to be used
later in various places in the code.
This change has no functional impact, but only removes unnecessary
redundant function calls.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Zaid Alali <zaidal@os.amperecomputing.com>
Link: https://patch.msgid.link/20250506213814.2365788-5-zaidal@os.amperecomputing.com
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 368604c commit e54b1dc
1 file changed
+9
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
648 | 650 | | |
649 | 651 | | |
650 | 652 | | |
651 | | - | |
652 | | - | |
653 | 653 | | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | 654 | | |
658 | | - | |
| 655 | + | |
659 | 656 | | |
660 | 657 | | |
661 | 658 | | |
| |||
678 | 675 | | |
679 | 676 | | |
680 | 677 | | |
681 | | - | |
682 | | - | |
| 678 | + | |
683 | 679 | | |
684 | 680 | | |
685 | 681 | | |
| |||
695 | 691 | | |
696 | 692 | | |
697 | 693 | | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
| 694 | + | |
702 | 695 | | |
703 | 696 | | |
704 | | - | |
705 | 697 | | |
706 | 698 | | |
707 | 699 | | |
| |||
772 | 764 | | |
773 | 765 | | |
774 | 766 | | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
775 | 771 | | |
776 | 772 | | |
777 | 773 | | |
| |||
0 commit comments