diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c index c43324c2bd3b..19e0ad4bbc7e 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c @@ -14927,8 +14927,7 @@ static bool vop2_plane_mask_check(struct vop2 *vop2) plane_mask |= vop2->vps[i].plane_mask; } - if (hweight32(plane_mask) != vop2_data->nr_layers || - plane_mask != vop2_data->plane_mask_base) { + if (plane_mask != vop2_data->plane_mask_base) { full_plane = vop2_plane_mask_to_string(vop2_data->plane_mask_base); current_plane = vop2_plane_mask_to_string(plane_mask); DRM_WARN("all windows should be assigned, full plane mask: %s[0x%x], current plane mask: %s[0x%x]\n",