mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 19:06:14 +00:00
drm/rockchip: Remove unnecessary NULL check
The expression &private->fbdev_helper can never be NULL, so the check is completely unnecessary. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20170329144401.1804-12-thierry.reding@gmail.com
This commit is contained in:
parent
6c8e54714c
commit
5a1535b110
1 changed files with 1 additions and 3 deletions
|
@ -168,10 +168,8 @@ err_gem_object_unreference:
|
||||||
static void rockchip_drm_output_poll_changed(struct drm_device *dev)
|
static void rockchip_drm_output_poll_changed(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct rockchip_drm_private *private = dev->dev_private;
|
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(&private->fbdev_helper);
|
||||||
drm_fb_helper_hotplug_event(fb_helper);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue