gma500: oaktrail_lvds_init() drop unused variable
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 8 Mar 2012 16:14:18 +0000 (16:14 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 10 Mar 2012 13:06:35 +0000 (13:06 +0000)
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/oaktrail_lvds.c

index 37273b80bcd537b979f75c081e1db0eb79fdc2e7..654f32b22b21f3511791cf326a5ca2df7cdb55ac 100644 (file)
@@ -331,7 +331,6 @@ void oaktrail_lvds_init(struct drm_device *dev,
        struct drm_encoder *encoder;
        struct drm_psb_private *dev_priv = dev->dev_private;
        struct edid *edid;
-       int ret = 0;
        struct i2c_adapter *i2c_adap;
        struct drm_display_mode *scan;  /* *modes, *bios_mode; */
 
@@ -400,7 +399,7 @@ void oaktrail_lvds_init(struct drm_device *dev,
                if (edid) {
                        drm_mode_connector_update_edid_property(connector,
                                                                        edid);
-                       ret = drm_add_edid_modes(connector, edid);
+                       drm_add_edid_modes(connector, edid);
                        kfree(edid);
                }