qcacmn: Fix Q_TARGET_ACCESS in hif_fastpath_resume
Q_TARGET_ACCESS return value check was incorrect. Fixed to match usage in the rest of the driver. Change-Id: I73631536c9670edcb5014f3e850985dfc6fc4d16 CRs-Fixed: 1046067
This commit is contained in:

committed by
Vishwajith Upendra

parent
d2d23bdd4b
commit
faf8ab5983
@@ -2910,7 +2910,9 @@ static void hif_fastpath_resume(struct hif_opaque_softc *hif_ctx)
|
||||
return;
|
||||
|
||||
if (scn->fastpath_mode_on) {
|
||||
if (Q_TARGET_ACCESS_BEGIN(scn)) {
|
||||
if (Q_TARGET_ACCESS_BEGIN(scn) < 0)
|
||||
return;
|
||||
|
||||
ce_state = scn->ce_id_to_state[CE_HTT_H2T_MSG];
|
||||
qdf_spin_lock_bh(&ce_state->ce_index_lock);
|
||||
|
||||
@@ -2920,7 +2922,6 @@ static void hif_fastpath_resume(struct hif_opaque_softc *hif_ctx)
|
||||
qdf_spin_unlock_bh(&ce_state->ce_index_lock);
|
||||
Q_TARGET_ACCESS_END(scn);
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
static void hif_fastpath_resume(struct hif_opaque_softc *hif_ctx) {}
|
||||
|
Reference in New Issue
Block a user