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:
Houston Hoffman
2016-07-01 04:22:40 -07:00
committato da Vishwajith Upendra
parent d2d23bdd4b
commit faf8ab5983

Vedi File

@@ -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);
@@ -2921,7 +2923,6 @@ static void hif_fastpath_resume(struct hif_opaque_softc *hif_ctx)
Q_TARGET_ACCESS_END(scn);
}
}
}
#else
static void hif_fastpath_resume(struct hif_opaque_softc *hif_ctx) {}
#endif