drm/i915/gem: Rework error handling in default_engines
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 8 Jul 2021 15:48:22 +0000 (10:48 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Jul 2021 17:47:12 +0000 (19:47 +0200)
commit07a635a825e6649f7c6dbea55e2a0557c30f1a73
treebbb8c4051986f11bfc5f7dc6a886387739850310
parenta34857dc92475a926cbfbebcba8fb1f1b1c6056b
drm/i915/gem: Rework error handling in default_engines

Since free_engines works for partially constructed engine sets, we can
use the usual goto pattern.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210708154835.528166-18-jason@jlekstrand.net
drivers/gpu/drm/i915/gem/i915_gem_context.c