CHROMIUM: [media] rk3288-vpu: Add VP8 decoder to V4L2 API implementation
[firefly-linux-kernel-4.4.55.git] / drivers / media / dvb-frontends / tda665x.c
index 2c1c759a4f42f2ee1b073bba1b4d127da1d00f6b..63cc12378d9aac4cfc7c2ad23be3e851ce9e361e 100644 (file)
@@ -228,8 +228,8 @@ struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
        struct dvb_tuner_info *info;
 
        state = kzalloc(sizeof(struct tda665x_state), GFP_KERNEL);
-       if (state == NULL)
-               goto exit;
+       if (!state)
+               return NULL;
 
        state->config           = config;
        state->i2c              = i2c;
@@ -246,10 +246,6 @@ struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
        printk(KERN_DEBUG "%s: Attaching TDA665x (%s) tuner\n", __func__, info->name);
 
        return fe;
-
-exit:
-       kfree(state);
-       return NULL;
 }
 EXPORT_SYMBOL(tda665x_attach);