提交 6ea77d13 编写于 作者: T Thomas Hellstrom 提交者: Dave Airlie

vmwgfx: Minor cleanups

As suggested by Konrad Rzeszutek Wilk
Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 e5ed157d
...@@ -569,9 +569,9 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset) ...@@ -569,9 +569,9 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset)
vmw_overlay_init(dev_priv); vmw_overlay_init(dev_priv);
/* 3D Depends on Screen Objects being used. */ /* 3D Depends on Screen Objects being used. */
DRM_INFO("%s", vmw_fifo_have_3d(dev_priv) ? DRM_INFO("Detected %sdevice 3D availability.\n",
"Detected device 3D availability.\n" : vmw_fifo_have_3d(dev_priv) ?
"Detected no device 3D availability.\n"); "" : "no ");
/* We might be done with the fifo now */ /* We might be done with the fifo now */
if (dev_priv->enable_fb) { if (dev_priv->enable_fb) {
......
...@@ -1317,18 +1317,19 @@ int vmw_du_update_layout(struct vmw_private *dev_priv, unsigned num, ...@@ -1317,18 +1317,19 @@ int vmw_du_update_layout(struct vmw_private *dev_priv, unsigned num,
struct drm_device *dev = dev_priv->dev; struct drm_device *dev = dev_priv->dev;
struct vmw_display_unit *du; struct vmw_display_unit *du;
struct drm_connector *con; struct drm_connector *con;
int i;
mutex_lock(&dev->mode_config.mutex); mutex_lock(&dev->mode_config.mutex);
#if 0 #if 0
DRM_INFO("%s: new layout ", __func__); {
for (i = 0; i < (int)num; i++) unsigned int i;
DRM_INFO("(%i, %i %ux%u) ", rects[i].x, rects[i].y,
rects[i].w, rects[i].h); DRM_INFO("%s: new layout ", __func__);
DRM_INFO("\n"); for (i = 0; i < num; i++)
#else DRM_INFO("(%i, %i %ux%u) ", rects[i].x, rects[i].y,
(void)i; rects[i].w, rects[i].h);
DRM_INFO("\n");
}
#endif #endif
list_for_each_entry(con, &dev->mode_config.connector_list, head) { list_for_each_entry(con, &dev->mode_config.connector_list, head) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册