From: Andrew Morton Date: Fri, 19 Sep 2008 02:26:35 +0000 (-0300) Subject: V4L/DVB (9033): drivers/media/video/tda9840.c: unbreak X-Git-Tag: upstream/snapshot3+hdmi~22397^2~116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=714b9a1e0ae3224728d1d96d77150ceea7487a61;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- 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; }