diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-24 06:29:30 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-10 23:18:32 -0300 |
commit | 6c832e36447821779344f3d33970a4a7a10245cc (patch) | |
tree | aaa6aad7f9ad1f85415cd1c52db7b905ac4e802f /drivers | |
parent | 2389b36072892fed57a701e01a7dbe655420e5e5 (diff) | |
download | linux-6c832e36447821779344f3d33970a4a7a10245cc.tar.gz linux-6c832e36447821779344f3d33970a4a7a10245cc.tar.bz2 linux-6c832e36447821779344f3d33970a4a7a10245cc.zip |
V4L/DVB (8789): wm8739: remove wrong kfree
i2c_client is allocated for us, we should never free it ourselves.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/wm8739.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/wm8739.c b/drivers/media/video/wm8739.c index 95c79ad80487..54ac3fe26ec2 100644 --- a/drivers/media/video/wm8739.c +++ b/drivers/media/video/wm8739.c @@ -274,10 +274,8 @@ static int wm8739_probe(struct i2c_client *client, client->addr << 1, client->adapter->name); state = kmalloc(sizeof(struct wm8739_state), GFP_KERNEL); - if (state == NULL) { - kfree(client); + if (state == NULL) return -ENOMEM; - } state->vol_l = 0x17; /* 0dB */ state->vol_r = 0x17; /* 0dB */ state->muted = 0; |