diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-04-13 14:07:42 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-05-01 13:03:59 +0200 |
commit | b28e22bd9cd3dc3b81db65c796e8fd4fe350f7b0 (patch) | |
tree | 6f92a0130704eb7532defe987fb1c3d84aabec41 /drivers | |
parent | 0f66947bffe6cf630d37a6ec75f654d330ec66a4 (diff) | |
download | linux-b28e22bd9cd3dc3b81db65c796e8fd4fe350f7b0.tar.bz2 |
mt76: mt7615: use sizeof instead of sizeof_field
It is simpler in this case
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index b09540654b09..ea67c6022fe6 100644 --- 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; |