alistair23-linux/drivers/gpu/drm/vc4
Colin Ian King 7b34734816 drm: vc4: remove redundant check of plane being non-null
The pointer plane is always null on the error path at label 'fail'
hence the check if it is non-null is redundant. We can therefore
remove the check and the destruction of plane as well as the fail
error path and instead just return an -ENOMEM ERR_PTR.

Detected by CoverityScan, CID#1339532 ("Logically Dead Code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170316185418.32765-1-colin.king@canonical.com
2017-03-17 16:44:14 -07:00
..
Kconfig drm/vc4: Add HDMI audio support 2017-03-16 10:33:30 -07:00
Makefile drm/vc4: Add DSI driver 2017-02-01 12:51:23 -08:00
vc4_bo.c drm/vc4: Fix OOPSes from trying to cache a partially constructed BO. 2017-03-02 09:57:23 -08:00
vc4_crtc.c drm/vc4: Extend and edit documentation for output from the RST 2017-02-28 12:51:49 -08:00
vc4_debugfs.c drm/vc4: Add DSI driver 2017-02-01 12:51:23 -08:00
vc4_dpi.c drm/vc4: Extend and edit documentation for output from the RST 2017-02-28 12:51:49 -08:00
vc4_drv.c drm/vc4: use platform_register_drivers 2017-03-17 16:44:09 -07:00
vc4_drv.h drm: vc4: use vblank hooks in struct drm_crtc_funcs 2017-02-09 16:12:47 +08:00
vc4_dsi.c drm/vc4: Convert existing documentation to actual kerneldoc. 2017-02-28 12:51:48 -08:00
vc4_gem.c Pointer for Markus's image conversion work. 2017-03-14 15:07:33 +01:00
vc4_hdmi.c drm/vc4: Add HDMI audio support 2017-03-16 10:33:30 -07:00
vc4_hvs.c drm/vc4: Extend and edit documentation for output from the RST 2017-02-28 12:51:49 -08:00
vc4_irq.c drm/vc4: Convert existing documentation to actual kerneldoc. 2017-02-28 12:51:48 -08:00
vc4_kms.c drm: Rely on mode_config data for fb_helper initialization 2017-02-02 19:12:00 +01:00
vc4_packet.h drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_plane.c drm: vc4: remove redundant check of plane being non-null 2017-03-17 16:44:14 -07:00
vc4_qpu_defines.h drm/vc4: Fix definition of QPU_R_MS_REV_FLAGS 2016-07-15 15:19:52 -07:00
vc4_regs.h drm/vc4: Add HDMI audio support 2017-03-16 10:33:30 -07:00
vc4_render_cl.c drm/vc4: Extend and edit documentation for output from the RST 2017-02-28 12:51:49 -08:00
vc4_trace.h drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_trace_points.c drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_v3d.c drm/vc4: Use runtime autosuspend to avoid thrashing V3D power state. 2016-11-04 16:12:35 -07:00
vc4_validate.c drm/vc4: Extend and edit documentation for output from the RST 2017-02-28 12:51:49 -08:00
vc4_validate_shaders.c drm/vc4: Extend and edit documentation for output from the RST 2017-02-28 12:51:49 -08:00
vc4_vec.c drm/vc4: Extend and edit documentation for output from the RST 2017-02-28 12:51:49 -08:00