summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/udl/udl_connector.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-01-11 12:08:58 +0100
committerDave Airlie <airlied@redhat.com>2013-01-13 23:45:27 +0100
commit7b4cf994e4c6ba48872bb25253cc393b7fb74c82 (patch)
tree534024c28b9afbe02cf973da9e70e9dcca14097f /drivers/gpu/drm/udl/udl_connector.c
parentudldrmfb: udl_get_edid: usb_control_msg buffer must not be on the stack (diff)
downloadlinux-7b4cf994e4c6ba48872bb25253cc393b7fb74c82.tar.xz
linux-7b4cf994e4c6ba48872bb25253cc393b7fb74c82.zip
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 <hdegoede@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/udl/udl_connector.c')
-rw-r--r--drivers/gpu/drm/udl/udl_connector.c1
1 files changed, 0 insertions, 1 deletions
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];