Commit c37f836
PCI: aardvark: Deduplicate code in advk_pcie_rd_conf()
commit 67cb2a4 upstream.
Avoid code repetition in advk_pcie_rd_conf() by handling errors with
goto jump, as is customary in kernel.
Link: https://lore.kernel.org/r/20211005180952.6812-9-kabel@kernel.org
Fixes: 43f5c77 ("PCI: aardvark: Fix reporting CRS value")
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent a0a7875 commit c37f836
1 file changed
Lines changed: 20 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
| 1093 | + | |
| 1094 | + | |
1105 | 1095 | | |
1106 | 1096 | | |
1107 | 1097 | | |
| |||
1125 | 1115 | | |
1126 | 1116 | | |
1127 | 1117 | | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
| 1118 | + | |
| 1119 | + | |
1140 | 1120 | | |
1141 | 1121 | | |
1142 | 1122 | | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
| 1123 | + | |
| 1124 | + | |
1147 | 1125 | | |
1148 | 1126 | | |
1149 | 1127 | | |
1150 | 1128 | | |
1151 | 1129 | | |
1152 | 1130 | | |
1153 | 1131 | | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
1154 | 1146 | | |
1155 | 1147 | | |
1156 | 1148 | | |
| |||
0 commit comments