diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-19 02:26:35 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-19 02:26:35 +0000 |
commit | 7e2816a102e8c58b190688cd96930d9c5c84f7f4 (patch) | |
tree | 3fcd29384dbf47637be99db806016344e3253624 /linux/drivers | |
parent | afe823da08720ab728a75ac4d12a830d1cc73549 (diff) | |
download | mediapointer-dvb-s2-7e2816a102e8c58b190688cd96930d9c5c84f7f4.tar.gz mediapointer-dvb-s2-7e2816a102e8c58b190688cd96930d9c5c84f7f4.tar.bz2 |
drivers/media/video/tda9840.c: unbreak
From: Andrew Morton <akpm@linux-foundation.org>
drivers/media/video/tda9840.c: In function 'tda9840_command':
drivers/media/video/tda9840.c:152: warning: 'result' is used uninitialized in this function
Priority: normal
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
[mchehab@redhat.com: Fix conflict with another patch that were meant to solve the warning]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/tda9840.c | 4 |
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; } |