qcacld-3.0: Remove from_irq

From irq variable is not serving a good purpose.

Change-Id: I362e4fa8c5202e748fac455fb76ce676bd1ea31b
CRs-Fixed: 941355
This commit is contained in:
Houston Hoffman 2015-11-18 19:41:52 -08:00 • committed by Satish Singh
commit e9afdc1298
2 changed files with 2 additions and 7 deletions

View file

@ -102,7 +102,6 @@ struct ce_tasklet_entry {
enum ce_id_type ce_id;
bool inited;
void *hif_ce_state;
bool from_irq;
};
struct HIF_CE_state {

View file

@ -203,9 +203,6 @@ static void ce_tasklet(unsigned long data)
struct ol_softc *scn = hif_ce_state->scn;
struct CE_state *CE_state = scn->ce_id_to_state[tasklet_entry->ce_id];
if (tasklet_entry->from_irq)
tasklet_entry->from_irq = false;
if (cdf_atomic_read(&scn->link_suspended)) {
HIF_ERROR("%s: ce %d tasklet fired after link suspend.",
__func__, tasklet_entry->ce_id);
@ -306,10 +303,9 @@ static irqreturn_t ce_irq_handler(int irq, void *context)
cdf_atomic_inc(&scn->active_tasklet_cnt);
if (hif_napi_enabled(scn, ce_id))
hif_napi_schedule(scn, ce_id);
else {
tasklet_entry->from_irq = true;
else
tasklet_schedule(&tasklet_entry->intr_tq);
}
return IRQ_HANDLED;
}