diff options
author | Liu Ying <Ying.Liu@freescale.com> | 2014-06-19 10:01:44 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-06-19 10:13:46 +0200 |
commit | 2a8c6edfd2a888085ae0ddaf6c3ea3f529fdc4e8 (patch) | |
tree | 71aeaf670adaa301760cd15e97e4073638fecbcf /drivers/gpu/drm/drm_fb_helper.c | |
parent | drm/fb-helper: Redundant info->fix.type_aux setting in drm_fb_helper_fill_fix() (diff) | |
download | linux-2a8c6edfd2a888085ae0ddaf6c3ea3f529fdc4e8.tar.xz linux-2a8c6edfd2a888085ae0ddaf6c3ea3f529fdc4e8.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/drm_fb_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 7ff98063925f..5aab5ab8b584 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -199,9 +199,6 @@ int drm_fb_helper_debug_enter(struct fb_info *info) struct drm_crtc_helper_funcs *funcs; int i; - if (list_empty(&kernel_fb_helper_list)) - return false; - list_for_each_entry(helper, &kernel_fb_helper_list, kernel_fb_list) { for (i = 0; i < helper->crtc_count; i++) { struct drm_mode_set *mode_set = |