drm/i915: remove unneeded visible check

The fb check introduced to drm_plane_helper_check_update() just make this
check impossible to branch in.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Gustavo Padovan 2014-10-24 19:00:18 +01:00 коммит произвёл Daniel Vetter
Родитель 083fe3b035
Коммит 3ead8bb26e
1 изменённых файлов: 5 добавлений и 16 удалений

Просмотреть файл

@ -11639,23 +11639,12 @@ intel_check_primary_plane(struct drm_plane *plane,
struct drm_rect *dest = &state->dst;
struct drm_rect *src = &state->src;
const struct drm_rect *clip = &state->clip;
int ret;
ret = drm_plane_helper_check_update(plane, crtc, fb,
return drm_plane_helper_check_update(plane, crtc, fb,
src, dest, clip,
DRM_PLANE_HELPER_NO_SCALING,
DRM_PLANE_HELPER_NO_SCALING,
false, true, &state->visible);
if (ret)
return ret;
/* no fb bound */
if (state->visible && !fb) {
DRM_ERROR("No FB bound\n");
return -EINVAL;
}
return 0;
}
static int