GPU-DRM-sun4i: Delete an unnecessary check before drm_fbdev_cma_hotplug_event()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 20 Jul 2016 16:32:34 +0000 (18:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Jul 2016 17:47:35 +0000 (19:47 +0200)
commit29d79ede4edc1661e24b918acbc9c42a4cd4fcd0
treec3eab542615380954aa7ce7b8b586e9798203871
parentf35cbe6a178e94d3fc290f414aa421f81ac76069
GPU-DRM-sun4i: Delete an unnecessary check before drm_fbdev_cma_hotplug_event()

The drm_fbdev_cma_hotplug_event() function tests whether its argument
is NULL and then returns immediately.
Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/cd959d92-f7d9-598c-421f-d3f40bedee10@users.sourceforge.net
drivers/gpu/drm/sun4i/sun4i_framebuffer.c