]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: Remove bogus cleanup in nv50_mstm_add_connector()
authorLyude Paul <lyude@redhat.com>
Fri, 11 Jan 2019 00:53:35 +0000 (19:53 -0500)
committerLyude Paul <lyude@redhat.com>
Fri, 11 Jan 2019 01:38:07 +0000 (20:38 -0500)
commita7a4d92ce5b60d7420ec0050238bcbcb4b7a036e
tree01cccb62afac81f1fc9d7e345b44bdeb224f6cb2
parent917f613bc9c9d820875d9c740ff8f543656ad8e2
drm/nouveau: Remove bogus cleanup in nv50_mstm_add_connector()

Trying to destroy the connector using mstc->connector.funcs->destroy()
if connector initialization fails is wrong: there is no possible
codepath in nv50_mstc_new where nv50_mstm_add_connector() would return
<0 and mstc would be non-NULL.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@redhat.com>
Cc: Jerry Zuo <Jerry.Zuo@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Juston Li <juston.li@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190111005343.17443-13-lyude@redhat.com
drivers/gpu/drm/nouveau/dispnv50/disp.c