Skip to content

Commit

Permalink
mt76: mt7615: use sizeof instead of sizeof_field
Browse files Browse the repository at this point in the history
It is simpler in this case

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Apr 25, 2019
1 parent 9029560 commit e9eea39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mt7615/mcu.c
Expand Up @@ -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;
Expand Down

0 comments on commit e9eea39

Please sign in to comment.