drm/crtc_helper/set_config: Remove redundant NULL pointer check on set->mode
authorLiu Ying <gnuiyl@gmail.com>
Thu, 14 Jan 2016 06:00:10 +0000 (14:00 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 18 Jan 2016 06:51:12 +0000 (07:51 +0100)
commit2deafc7e163be631183bdfc066e2f636e7818e00
treee78625669a6a98ad65111b1d25fc587f0da6dd69
parent07096bd3c9d83f043c733c592974aa8ea93ba2db
drm/crtc_helper/set_config: Remove redundant NULL pointer check on set->mode

We've done sanity NULL pointer check on set->mode at the beginning of
drm_crtc_helper_set_config() and bailed out if necessary, thus any later on
check is redundant.

Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1452751210-19216-2-git-send-email-gnuiyl@gmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc_helper.c