aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2012-03-08 11:13:23 -0500
committerDave Airlie <airlied@redhat.com>2012-03-10 08:06:34 -0500
commit1e30296a603812fc3592b2a25e0daf3b416d42ce (patch)
treed7b53d07bfd52009157e5245dfcf1fca879b505b /drivers/gpu/drm/gma500
parent771f64d027db83f3627757723d63dac4ac9b523e (diff)
gma500: oaktrail_hdmi_i2c_access() drop unused variable
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>
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r--drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c b/drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c
index 705440874ac0..5e84fbde749b 100644
--- a/drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c
+++ b/drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c
@@ -127,7 +127,7 @@ static int oaktrail_hdmi_i2c_access(struct i2c_adapter *adap,
127{ 127{
128 struct oaktrail_hdmi_dev *hdmi_dev = i2c_get_adapdata(adap); 128 struct oaktrail_hdmi_dev *hdmi_dev = i2c_get_adapdata(adap);
129 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; 129 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev;
130 int i, err = 0; 130 int i;
131 131
132 mutex_lock(&i2c_dev->i2c_lock); 132 mutex_lock(&i2c_dev->i2c_lock);
133 133
@@ -139,9 +139,9 @@ static int oaktrail_hdmi_i2c_access(struct i2c_adapter *adap,
139 for (i = 0; i < num; i++) { 139 for (i = 0; i < num; i++) {
140 if (pmsg->len && pmsg->buf) { 140 if (pmsg->len && pmsg->buf) {
141 if (pmsg->flags & I2C_M_RD) 141 if (pmsg->flags & I2C_M_RD)
142 err = xfer_read(adap, pmsg); 142 xfer_read(adap, pmsg);
143 else 143 else
144 err = xfer_write(adap, pmsg); 144 xfer_write(adap, pmsg);
145 } 145 }
146 pmsg++; /* next message */ 146 pmsg++; /* next message */
147 } 147 }