summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda9840.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/tda9840.c')
-rw-r--r--linux/drivers/media/video/tda9840.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/linux/drivers/media/video/tda9840.c b/linux/drivers/media/video/tda9840.c
index 72adcb450..31dde7516 100644
--- a/linux/drivers/media/video/tda9840.c
+++ b/linux/drivers/media/video/tda9840.c
@@ -72,7 +72,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) {
@@ -177,9 +176,6 @@ static int tda9840_command(struct i2c_client *client, unsigned cmd, void *arg)
return -ENOIOCTLCMD;
}
- if (result)
- return -EIO;
-
return 0;
}