From: Hans de Goede Date: Fri, 11 Jan 2013 11:08:58 +0000 (+0100) Subject: udldrmfb: udl_get_edid: drop unneeded i-- X-Git-Tag: Ubuntu-5.0.0-8.9~14497^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=7b4cf994e4c6ba48872bb25253cc393b7fb74c82;p=mirror_ubuntu-disco-kernel.git udldrmfb: udl_get_edid: drop unneeded i-- 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 Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c index 353bc1ea6f68..fe5cdbcf2636 100644 --- a/drivers/gpu/drm/udl/udl_connector.c +++ b/drivers/gpu/drm/udl/udl_connector.c @@ -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];