aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_irq.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-02-03 19:56:24 +0000
committerEric Anholt <[email protected]>2017-02-07 23:27:25 +0000
commitfce6a7bc22114c69b071bcf6fbfea2d07de6273c (patch)
tree8ae9ca94c7cbb9d6f76c9315a782ea9198bc9b18 /drivers/gpu/drm/omapdrm/omap_irq.c
parentdrm: exynos: use vblank hooks in struct drm_crtc_funcs (diff)
downloadkernel-fce6a7bc22114c69b071bcf6fbfea2d07de6273c.tar.gz
kernel-fce6a7bc22114c69b071bcf6fbfea2d07de6273c.zip
drm/vc4: simplify exit path of a failed allocation of dsi_connector
If dsi_connector fails to allocate, the exit path via label 'fail' checks if connector is null, which it always is, so the cleanup that destroys connector is never going to be called. Hence the failure path can be more optimally performed by removing this and just returning ERR_PTR(-ENOMEM). This also removes the need to initialize connector to NULL, and we can also remove ret too. Detected by CoverityScan, CID#1399504 ("Logicall Dead Code") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Gustavo Padovan <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_irq.c')
0 files changed, 0 insertions, 0 deletions