We can live easily without that variable.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
int (*fe_sleep[MAX_NO_OF_FE_PER_ADAP]) (struct dvb_frontend *);
int active_fe;
- int num_frontends_initialized;
};
/**
}
}
- adap->num_frontends_initialized = count_registered;
-
return 0;
err_dvb_unregister_frontend:
int i;
pr_debug("%s: adap=%d\n", __func__, adap->id);
- for (i = adap->num_frontends_initialized - 1; i >= 0; i--) {
+ for (i = MAX_NO_OF_FE_PER_ADAP - 1; i >= 0; i--) {
if (adap->fe[i]) {
dvb_unregister_frontend(adap->fe[i]);
dvb_frontend_detach(adap->fe[i]);
}
}
- adap->num_frontends_initialized = 0;
-
return 0;
}