]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/tda9840.c
V4L/DVB (9033): drivers/media/video/tda9840.c: unbreak
[linux-2.6-omap-h63xx.git] / drivers / media / video / tda9840.c
index 77bfd24ecfae4fa0039dbb4f47472b898d9d7f41..1c391f0328fd195c1f977956cae06d5ab02428fa 100644 (file)
@@ -71,7 +71,6 @@ static void tda9840_write(struct i2c_client *client, u8 reg, u8 val)
 
 static int tda9840_command(struct i2c_client *client, unsigned cmd, void *arg)
 {
-       int result = 0;
        int byte = *(int *)arg;
 
        switch (cmd) {
@@ -176,9 +175,6 @@ static int tda9840_command(struct i2c_client *client, unsigned cmd, void *arg)
                return -ENOIOCTLCMD;
        }
 
-       if (result)
-               return -EIO;
-
        return 0;
 }