Merge tag 'media/v6.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[linux-2.6-microblaze.git] / drivers / media / dvb-frontends / bcm3510.c
index b3f5c49..27f1de2 100644 (file)
@@ -797,7 +797,6 @@ struct dvb_frontend* bcm3510_attach(const struct bcm3510_config *config,
                                   struct i2c_adapter *i2c)
 {
        struct bcm3510_state* state = NULL;
-       int ret;
        bcm3510_register_value v;
 
        /* allocate memory for the internal state */
@@ -816,7 +815,7 @@ struct dvb_frontend* bcm3510_attach(const struct bcm3510_config *config,
 
        mutex_init(&state->hab_mutex);
 
-       if ((ret = bcm3510_readB(state,0xe0,&v)) < 0)
+       if (bcm3510_readB(state, 0xe0, &v) < 0)
                goto error;
 
        deb_info("Revision: 0x%1x, Layer: 0x%1x.\n",v.REVID_e0.REV,v.REVID_e0.LAYER);