gma500: oaktrail_hdmi_i2c_access() drop unused variable
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 8 Mar 2012 16:13:23 +0000 (16:13 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 10 Mar 2012 13:06:34 +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_hdmi_i2c.c

index 705440874ac049f53e9973bb9abfc5bebaf4dca7..5e84fbde749b554571daad28bb0ddd6bad821075 100644 (file)
@@ -127,7 +127,7 @@ static int oaktrail_hdmi_i2c_access(struct i2c_adapter *adap,
 {
        struct oaktrail_hdmi_dev *hdmi_dev = i2c_get_adapdata(adap);
        struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev;
-       int i, err = 0;
+       int i;
 
        mutex_lock(&i2c_dev->i2c_lock);
 
@@ -139,9 +139,9 @@ static int oaktrail_hdmi_i2c_access(struct i2c_adapter *adap,
        for (i = 0; i < num; i++) {
                if (pmsg->len && pmsg->buf) {
                        if (pmsg->flags & I2C_M_RD)
-                               err = xfer_read(adap, pmsg);
+                               xfer_read(adap, pmsg);
                        else
-                               err = xfer_write(adap, pmsg);
+                               xfer_write(adap, pmsg);
                }
                pmsg++;         /* next message */
        }