]> git.karo-electronics.de Git - linux-beck.git/commitdiff
vmwgfx: Whitespace & code style in display unit
authorJakob Bornecrantz <jakob@vmware.com>
Mon, 17 Oct 2011 09:59:44 +0000 (11:59 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Oct 2011 08:39:03 +0000 (09:39 +0100)
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c

index a8830d730dc1c42350eda772e51d56d9e18d0baf..92f56bc594eb6bcd1f691fc7218316334f9c29ce 100644 (file)
@@ -362,8 +362,7 @@ static int vmw_ldu_init(struct vmw_private *dev_priv, unsigned unit)
 int vmw_kms_init_legacy_display_system(struct vmw_private *dev_priv)
 {
        struct drm_device *dev = dev_priv->dev;
-       int i;
-       int ret;
+       int i, ret;
 
        if (dev_priv->ldu_priv) {
                DRM_INFO("ldu system already on\n");
@@ -371,7 +370,6 @@ int vmw_kms_init_legacy_display_system(struct vmw_private *dev_priv)
        }
 
        dev_priv->ldu_priv = kmalloc(sizeof(*dev_priv->ldu_priv), GFP_KERNEL);
-
        if (!dev_priv->ldu_priv)
                return -ENOMEM;
 
index 319516f4ace288e5eb5bacfa803b4a0c1730925b..477b2a9eb3c2acdc8ebbfcc3a52eb4991bc8f332 100644 (file)
@@ -502,8 +502,7 @@ static int vmw_sou_init(struct vmw_private *dev_priv, unsigned unit)
 int vmw_kms_init_screen_object_display(struct vmw_private *dev_priv)
 {
        struct drm_device *dev = dev_priv->dev;
-       int i;
-       int ret;
+       int i, ret;
 
        if (dev_priv->sou_priv) {
                DRM_INFO("sou system already on\n");
@@ -530,7 +529,7 @@ int vmw_kms_init_screen_object_display(struct vmw_private *dev_priv)
        if (unlikely(ret != 0))
                goto err_free;
 
-       ret = drm_mode_create_dirty_info_property(dev_priv->dev);
+       ret = drm_mode_create_dirty_info_property(dev);
        if (unlikely(ret != 0))
                goto err_vblank_cleanup;