udldrmfb: udl_get_edid: drop unneeded i--
authorHans de Goede <hdegoede@redhat.com>
Fri, 11 Jan 2013 11:08:58 +0000 (12:08 +0100)
committerDave Airlie <airlied@redhat.com>
Sun, 13 Jan 2013 22:45:27 +0000 (08:45 +1000)
This is a left-over from when udl_get_edid returned the amount of bytes
successfully read, which it no longer does.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_connector.c

index 353bc1ea6f68540e5e14d538b2c6f76d6625d437..fe5cdbcf263605b7b5ec853b4d5f354f7c754b13 100644 (file)
@@ -40,7 +40,6 @@ static u8 *udl_get_edid(struct udl_device *udl)
                                      HZ);
                if (ret < 1) {
                        DRM_ERROR("Read EDID byte %d failed err %x\n", i, ret);
-                       i--;
                        goto error;
                }
                block[i] = rbuf[1];