drm/fb-helper: Remove unnecessary list empty check in drm_fb_helper_debug_enter()
authorLiu Ying <Ying.Liu@freescale.com>
Thu, 19 Jun 2014 08:01:44 +0000 (16:01 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 19 Jun 2014 08:13:46 +0000 (10:13 +0200)
commit2a8c6edfd2a888085ae0ddaf6c3ea3f529fdc4e8
tree71aeaf670adaa301760cd15e97e4073638fecbcf
parent30bfa4eec7e813825f7537149eb394605c41dbe8
drm/fb-helper: Remove unnecessary list empty check in drm_fb_helper_debug_enter()

The following list empty check is unnecessary because we would still do nothing
real and return 'val' if my_list is empty.

if (list_empty(&my_list))
return val;

list_for_each_entry(pos, &my_list, member) {
...
}

return val;

This patch removes the unnecessary check in drm_fb_helper_debug_enter().

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fb_helper.c