提交 2950833f 编写于 作者: W Wan Jiabing 提交者: Kalle Valo

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

Use if and else instead of if(A) and if (!A).
Signed-off-by: NWan Jiabing <wanjiabing@vivo.com>
Acked-by: NToke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: NKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220424094441.104937-1-wanjiabing@vivo.com
上级 a5f3aed5
...@@ -368,10 +368,9 @@ static int __hif_usb_tx(struct hif_device_usb *hif_dev) ...@@ -368,10 +368,9 @@ static int __hif_usb_tx(struct hif_device_usb *hif_dev)
__skb_queue_head_init(&tx_buf->skb_queue); __skb_queue_head_init(&tx_buf->skb_queue);
list_move_tail(&tx_buf->list, &hif_dev->tx.tx_buf); list_move_tail(&tx_buf->list, &hif_dev->tx.tx_buf);
hif_dev->tx.tx_buf_cnt++; hif_dev->tx.tx_buf_cnt++;
} } else {
if (!ret)
TX_STAT_INC(buf_queued); TX_STAT_INC(buf_queued);
}
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册