Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a1535b1 authored by Thierry Reding's avatar Thierry Reding Committed by Daniel Vetter
Browse files

drm/rockchip: Remove unnecessary NULL check



The expression &private->fbdev_helper can never be NULL, so the check is
completely unnecessary.

Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170329144401.1804-12-thierry.reding@gmail.com
parent 6c8e5471
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -168,10 +168,8 @@ rockchip_user_fb_create(struct drm_device *dev, struct drm_file *file_priv,
static void rockchip_drm_output_poll_changed(struct drm_device *dev)
{
	struct rockchip_drm_private *private = dev->dev_private;
	struct drm_fb_helper *fb_helper = &private->fbdev_helper;

	if (fb_helper)
		drm_fb_helper_hotplug_event(fb_helper);
	drm_fb_helper_hotplug_event(&private->fbdev_helper);
}

static void