Commit f5255f9
committed
drm/i915/fb: Init 'ret' in each error branch in intel_framebuffer_init()
Make the order of things a bit less fragile in
intel_framebuffer_init() by assigning 'ret' in each
error branch instead of depending on some earlier
assignment.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251107181126.5743-6-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>1 parent 13fad66 commit f5255f9
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2234 | 2234 | | |
2235 | 2235 | | |
2236 | 2236 | | |
2237 | | - | |
2238 | 2237 | | |
2239 | 2238 | | |
2240 | 2239 | | |
2241 | 2240 | | |
2242 | 2241 | | |
2243 | 2242 | | |
| 2243 | + | |
2244 | 2244 | | |
2245 | 2245 | | |
2246 | 2246 | | |
| |||
2251 | 2251 | | |
2252 | 2252 | | |
2253 | 2253 | | |
| 2254 | + | |
2254 | 2255 | | |
2255 | 2256 | | |
2256 | 2257 | | |
| |||
2259 | 2260 | | |
2260 | 2261 | | |
2261 | 2262 | | |
| 2263 | + | |
2262 | 2264 | | |
2263 | 2265 | | |
2264 | 2266 | | |
| |||
2269 | 2271 | | |
2270 | 2272 | | |
2271 | 2273 | | |
| 2274 | + | |
2272 | 2275 | | |
2273 | 2276 | | |
2274 | 2277 | | |
| |||
2277 | 2280 | | |
2278 | 2281 | | |
2279 | 2282 | | |
| 2283 | + | |
2280 | 2284 | | |
2281 | 2285 | | |
2282 | 2286 | | |
| |||
2287 | 2291 | | |
2288 | 2292 | | |
2289 | 2293 | | |
| 2294 | + | |
2290 | 2295 | | |
2291 | 2296 | | |
2292 | 2297 | | |
| |||
0 commit comments