Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3acabc88 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo
Browse files

ath6kl: change || to &&



The original conditions are always true.  I think && was intended here,
but I don't have the hardware to test.  Could you take a look?

kvalo: Chilam confirmed that the fix is valid

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 77ed4e45
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -758,7 +758,7 @@ static void ath6kl_htc_tx_bundle(struct htc_endpoint *endpoint,
	u32 txb_mask;
	u32 txb_mask;
	u8 ac = WMM_NUM_AC;
	u8 ac = WMM_NUM_AC;


	if ((HTC_CTRL_RSVD_SVC != endpoint->svc_id) ||
	if ((HTC_CTRL_RSVD_SVC != endpoint->svc_id) &&
	    (WMI_CONTROL_SVC != endpoint->svc_id))
	    (WMI_CONTROL_SVC != endpoint->svc_id))
		ac = target->dev->ar->ep2ac_map[endpoint->eid];
		ac = target->dev->ar->ep2ac_map[endpoint->eid];


@@ -866,7 +866,7 @@ static void ath6kl_htc_tx_from_queue(struct htc_target *target,
	 */
	 */
	INIT_LIST_HEAD(&txq);
	INIT_LIST_HEAD(&txq);


	if ((HTC_CTRL_RSVD_SVC != endpoint->svc_id) ||
	if ((HTC_CTRL_RSVD_SVC != endpoint->svc_id) &&
	    (WMI_CONTROL_SVC != endpoint->svc_id))
	    (WMI_CONTROL_SVC != endpoint->svc_id))
		ac = target->dev->ar->ep2ac_map[endpoint->eid];
		ac = target->dev->ar->ep2ac_map[endpoint->eid];