提交 714b9a1e 编写于 作者: A Andrew Morton 提交者: Mauro Carvalho Chehab

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: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 a31a4055
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册