projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5f3aed
)
ath9k: hif_usb: simplify if-if to if-else
author
Wan Jiabing
<wanjiabing@vivo.com>
Wed, 27 Apr 2022 07:37:32 +0000
(10:37 +0300)
committer
Kalle Valo
<quic_kvalo@quicinc.com>
Fri, 29 Apr 2022 06:04:58 +0000
(09:04 +0300)
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
drivers/net/wireless/ath/ath9k/hif_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/hif_usb.c
b/drivers/net/wireless/ath/ath9k/hif_usb.c
index
f06eec9
..
518deb5
100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/hif_usb.c
+++ b/
drivers/net/wireless/ath/ath9k/hif_usb.c
@@
-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;
}