mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
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>
This commit is contained in:
parent
a31a405547
commit
714b9a1e0a
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue