Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mahati Chamarthy and committed by
Greg Kroah-Hartman
3f76a4ea 288903f6

+1 -1
+1 -1
drivers/staging/rtl8192e/rtllib_rx.c
··· 52 52 skb_reset_mac_header(skb); 53 53 skb_pull(skb, hdr_length); 54 54 skb->pkt_type = PACKET_OTHERHOST; 55 - skb->protocol = __constant_htons(ETH_P_80211_RAW); 55 + skb->protocol = htons(ETH_P_80211_RAW); 56 56 memset(skb->cb, 0, sizeof(skb->cb)); 57 57 netif_rx(skb); 58 58 }