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>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
6c832e36 2389b360

+1 -3
+1 -3
drivers/media/video/wm8739.c
··· 274 274 client->addr << 1, client->adapter->name); 275 275 276 276 state = kmalloc(sizeof(struct wm8739_state), GFP_KERNEL); 277 - if (state == NULL) { 278 - kfree(client); 277 + if (state == NULL) 279 278 return -ENOMEM; 280 - } 281 279 state->vol_l = 0x17; /* 0dB */ 282 280 state->vol_r = 0x17; /* 0dB */ 283 281 state->muted = 0;