V4L/DVB (9033): drivers/media/video/tda9840.c: unbreak

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, October 13, 2008 - 3:15 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=714b9a...
Commit:     714b9a1e0ae3224728d1d96d77150ceea7487a61
Parent:     a31a4055473bf0a7b2b06cb2262347200d0711e1
Author:     Andrew Morton <akpm@linux-foundation.org>
AuthorDate: Thu Sep 18 23:26:35 2008 -0300
Committer:  Mauro Carvalho Chehab <mchehab@redhat.com>
CommitDate: Sun Oct 12 09:37:08 2008 -0200

    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>
---
 drivers/media/video/tda9840.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/media/video/tda9840.c b/drivers/media/video/tda9840.c
index 77bfd24..1c391f0 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)
 
 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;
 }
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
V4L/DVB (9033): drivers/media/video/tda9840.c: unbreak, Linux Kernel Mailing ..., (Mon Oct 13, 3:15 pm)