projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c8e547
)
drm/rockchip: Remove unnecessary NULL check
author
Thierry Reding
<treding@nvidia.com>
Wed, 29 Mar 2017 14:44:01 +0000
(16:44 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 21 Jun 2017 13:38:32 +0000
(15:38 +0200)
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
drivers/gpu/drm/rockchip/rockchip_drm_fb.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c
b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c
index 81f9548672b02734044a08f8ecae300df7edbf87..df6bceabeca8d5525fb2dc874e3b5fe559ff37cc 100644
(file)
--- a/
drivers/gpu/drm/rockchip/rockchip_drm_fb.c
+++ b/
drivers/gpu/drm/rockchip/rockchip_drm_fb.c
@@
-168,10
+168,8
@@
err_gem_object_unreference:
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