Skip to content

Commit

Permalink
rtl8xxxu: Fix sparse warning: cast from restricted __le16
Browse files Browse the repository at this point in the history
Fix the warning reported by sparse
  • Loading branch information
kimocoder committed Dec 3, 2021
1 parent cf8d8a8 commit a14cd2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtl8xxxu_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4974,8 +4974,8 @@ rtl8xxxu_fill_txdesc_v3(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr,
rate = tx_rate->hw_value;

if (rtl8xxxu_debug & RTL8XXXU_DEBUG_TX)
dev_info(dev, "%s: TX rate: %d, pkt size %d\n",
__func__, rate, cpu_to_le16(tx_desc->pkt_size));
dev_info(dev, "%s: TX rate: %d, pkt size %u\n",
__func__, rate, le16_to_cpu(tx_desc->pkt_size));

seq_number = IEEE80211_SEQ_TO_SN(le16_to_cpu(hdr->seq_ctrl));

Expand Down

0 comments on commit a14cd2b

Please sign in to comment.