projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f66947
)
mt76: mt7615: use sizeof instead of sizeof_field
author
Felix Fietkau
<nbd@nbd.name>
Sat, 13 Apr 2019 12:07:42 +0000
(14:07 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 1 May 2019 11:03:59 +0000
(13:03 +0200)
It is simpler in this case
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
index b09540654b0944935b5252b21b83ddd38904072c..ea67c6022fe6ff5894fa3cf066dfeddb1ab0d16a 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
@@
-88,8
+88,7
@@
static int __mt7615_mcu_msg_send(struct mt7615_dev *dev, struct sk_buff *skb,
FIELD_PREP(MT_TXD1_PKT_FMT, pkt_fmt);
txd[1] = cpu_to_le32(val);
- mcu_txd->len = cpu_to_le16(skb->len -
- sizeof_field(struct mt7615_mcu_txd, txd));
+ mcu_txd->len = cpu_to_le16(skb->len - sizeof(mcu_txd->txd));
mcu_txd->pq_id = cpu_to_le16(MCU_PQ_ID(MT_TX_PORT_IDX_MCU, q_idx));
mcu_txd->pkt_type = MCU_PKT_ID;
mcu_txd->seq = seq;