Commit c8706cc
cxl/pci: cxl_dport_map_rch_aer() cleanup
cxl_dport_map_ras() is used to map CXL RAS capability, the RCH AER
capability should not be mapped in the function but should mapped in
cxl_dport_init_ras_reporting(). Moving cxl_dport_map_ras() out of
cxl_dport_map_ras() and into cxl_dport_init_ras_reporting().
In cxl_dport_init_ras_reporting(), the AER capability position in RCRB
will be located but the position is only used in
cxl_dport_map_rch_aer(), getting the position in cxl_dport_map_rch_aer()
rather than cxl_dport_init_ras_reporting() is more reasonable and makes
the code clearer.
Besides, some local variables in cxl_dport_map_rch_aer() are
unnecessary, remove them to make the function more concise.
Signed-off-by: Li Ming <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>1 parent 577a676 commit c8706cc
1 file changed
+13
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
776 | | - | |
777 | 775 | | |
778 | 776 | | |
| 777 | + | |
779 | 778 | | |
780 | | - | |
| 779 | + | |
| 780 | + | |
781 | 781 | | |
782 | | - | |
783 | | - | |
784 | | - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
785 | 785 | | |
786 | | - | |
787 | | - | |
788 | 786 | | |
789 | 787 | | |
790 | 788 | | |
| |||
797 | 795 | | |
798 | 796 | | |
799 | 797 | | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | 798 | | |
804 | 799 | | |
805 | 800 | | |
| |||
838 | 833 | | |
839 | 834 | | |
840 | 835 | | |
841 | | - | |
| 836 | + | |
| 837 | + | |
842 | 838 | | |
843 | 839 | | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
| 840 | + | |
849 | 841 | | |
850 | | - | |
851 | | - | |
| 842 | + | |
| 843 | + | |
852 | 844 | | |
853 | | - | |
| 845 | + | |
854 | 846 | | |
| 847 | + | |
855 | 848 | | |
856 | 849 | | |
857 | 850 | | |
| |||
0 commit comments