This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] az6027: fix compiler warnings
Author:  Hans Verkuil <[email protected]>
Date:    Thu Aug 25 10:36:59 2011 -0300

Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/dvb/dvb-usb/az6027.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=db3ca1d5f118ef5ab5717068ee02c1e44e011e64

diff --git a/drivers/media/dvb/dvb-usb/az6027.c 
b/drivers/media/dvb/dvb-usb/az6027.c
index 82c5f45..2f42a81 100644
--- a/drivers/media/dvb/dvb-usb/az6027.c
+++ b/drivers/media/dvb/dvb-usb/az6027.c
@@ -782,7 +782,6 @@ static int az6027_set_voltage(struct dvb_frontend *fe, 
fe_sec_voltage_t voltage)
 {
 
        u8 buf;
-       int ret;
        struct dvb_usb_adapter *adap = fe->dvb->priv;
 
        struct i2c_msg i2c_msg = {
@@ -800,17 +799,17 @@ static int az6027_set_voltage(struct dvb_frontend *fe, 
fe_sec_voltage_t voltage)
        switch (voltage) {
        case SEC_VOLTAGE_13:
                buf = 1;
-               ret = i2c_transfer(&adap->dev->i2c_adap, &i2c_msg, 1);
+               i2c_transfer(&adap->dev->i2c_adap, &i2c_msg, 1);
                break;
 
        case SEC_VOLTAGE_18:
                buf = 2;
-               ret = i2c_transfer(&adap->dev->i2c_adap, &i2c_msg, 1);
+               i2c_transfer(&adap->dev->i2c_adap, &i2c_msg, 1);
                break;
 
        case SEC_VOLTAGE_OFF:
                buf = 0;
-               ret = i2c_transfer(&adap->dev->i2c_adap, &i2c_msg, 1);
+               i2c_transfer(&adap->dev->i2c_adap, &i2c_msg, 1);
                break;
 
        default:
@@ -954,7 +953,6 @@ static int az6027_i2c_xfer(struct i2c_adapter *adap, struct 
i2c_msg msg[], int n
 {
        struct dvb_usb_device *d = i2c_get_adapdata(adap);
        int i = 0, j = 0, len = 0;
-       int ret;
        u16 index;
        u16 value;
        int length;
@@ -990,7 +988,7 @@ static int az6027_i2c_xfer(struct i2c_adapter *adap, struct 
i2c_msg msg[], int n
                                index = (((msg[i].buf[0] << 8) & 0xff00) | 
(msg[i].buf[1] & 0x00ff));
                                value = msg[i].addr + (msg[i].len << 8);
                                length = msg[i + 1].len + 6;
-                               ret = az6027_usb_in_op(d, req, value, index, 
data, length);
+                               az6027_usb_in_op(d, req, value, index, data, 
length);
                                len = msg[i + 1].len;
                                for (j = 0; j < len; j++)
                                        msg[i + 1].buf[j] = data[j + 5];
@@ -1017,7 +1015,7 @@ static int az6027_i2c_xfer(struct i2c_adapter *adap, 
struct i2c_msg msg[], int n
                                index = 0x0;
                                value = msg[i].addr;
                                length = msg[i].len + 6;
-                               ret = az6027_usb_in_op(d, req, value, index, 
data, length);
+                               az6027_usb_in_op(d, req, value, index, data, 
length);
                                len = msg[i].len;
                                for (j = 0; j < len; j++)
                                        msg[i].buf[j] = data[j + 5];

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to