aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-09-18 22:26:35 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:37:08 -0400
commit714b9a1e0ae3224728d1d96d77150ceea7487a61 (patch)
tree6ca470d9054613326586907d50d81f47958eaec3 /drivers/media
parenta31a4055473bf0a7b2b06cb2262347200d0711e1 (diff)
V4L/DVB (9033): drivers/media/video/tda9840.c: unbreak
drivers/media/video/tda9840.c: In function 'tda9840_command': drivers/media/video/tda9840.c:152: warning: 'result' is used uninitialized in this function [mchehab@redhat.com: Fix conflict with another patch that were meant to solve the warning] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/tda9840.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/video/tda9840.c b/drivers/media/video/tda9840.c
index 77bfd24ecfae..1c391f0328fd 100644
--- a/drivers/media/video/tda9840.c
+++ b/drivers/media/video/tda9840.c
@@ -71,7 +71,6 @@ static void tda9840_write(struct i2c_client *client, u8 reg, u8 val)
71 71
72static int tda9840_command(struct i2c_client *client, unsigned cmd, void *arg) 72static int tda9840_command(struct i2c_client *client, unsigned cmd, void *arg)
73{ 73{
74 int result = 0;
75 int byte = *(int *)arg; 74 int byte = *(int *)arg;
76 75
77 switch (cmd) { 76 switch (cmd) {
@@ -176,9 +175,6 @@ static int tda9840_command(struct i2c_client *client, unsigned cmd, void *arg)
176 return -ENOIOCTLCMD; 175 return -ENOIOCTLCMD;
177 } 176 }
178 177
179 if (result)
180 return -EIO;
181
182 return 0; 178 return 0;
183} 179}
184 180