summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r--linux/drivers/media/video/tuner-core.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index b6de9fecb..d743581bf 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -307,10 +307,6 @@ static void set_type(struct i2c_client *c, unsigned int type,
/* discard private data, in case set_type() was previously called */
if ((ops) && (ops->release))
ops->release(t);
- else {
- kfree(t->priv);
- t->priv = NULL;
- }
switch (t->type) {
case TUNER_MT2032:
@@ -780,12 +776,7 @@ MOD_DEC_USE_COUNT;
#endif
if ((ops) && (ops->release))
ops->release(t);
- else {
- kfree(t->priv);
-#if 0
- t->priv = NULL;
-#endif
- }
+
kfree(t);
return 0;
}