mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
ath9k: hif_usb: simplify if-if to if-else
Use if and else instead of if(A) and if (!A). Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> Acked-by: Toke Høiland-Jørgensen <toke@toke.dk> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20220424094441.104937-1-wanjiabing@vivo.com
This commit is contained in:
parent
a5f3aed588
commit
2950833f10
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue