Skip to content

Commit 3f76a4e

Browse files
MahatiCgregkh
authored andcommitted
Staging: rtl8192e: Fix __constant_htons to htons style warning
This fixes the following checkpatch.pl warning: WARNING: __constant_htons should be htons Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 288903f commit 3f76a4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/staging/rtl8192e/rtllib_rx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static inline void rtllib_monitor_rx(struct rtllib_device *ieee,
5252
skb_reset_mac_header(skb);
5353
skb_pull(skb, hdr_length);
5454
skb->pkt_type = PACKET_OTHERHOST;
55-
skb->protocol = __constant_htons(ETH_P_80211_RAW);
55+
skb->protocol = htons(ETH_P_80211_RAW);
5656
memset(skb->cb, 0, sizeof(skb->cb));
5757
netif_rx(skb);
5858
}

0 commit comments

Comments
 (0)