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

Commit a49c13ec authored by Wan Jiabing's avatar Wan Jiabing Committed by Greg Kroah-Hartman
Browse files

ath9k: hif_usb: simplify if-if to if-else



[ Upstream commit 2950833f10cfa601813262e1d9c8473f9415681b ]

Use if and else instead of if(A) and if (!A).

Signed-off-by: default avatarWan Jiabing <wanjiabing@vivo.com>
Acked-by: default avatarToke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220424094441.104937-1-wanjiabing@vivo.com


Stable-dep-of: 0af54343a762 ("wifi: ath9k: hif_usb: clean up skbs if ath9k_hif_usb_rx_stream() fails")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 564bc222
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -368,10 +368,9 @@ static int __hif_usb_tx(struct hif_device_usb *hif_dev)
		__skb_queue_head_init(&tx_buf->skb_queue);
		list_move_tail(&tx_buf->list, &hif_dev->tx.tx_buf);
		hif_dev->tx.tx_buf_cnt++;
	}

	if (!ret)
	} else {
		TX_STAT_INC(buf_queued);
	}

	return ret;
}