Staging: rtl8192e: Fix __constant_htons to htons style warning
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Thu, 18 Sep 2014 13:57:09 +0000 (19:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:54:04 +0000 (17:54 -0700)
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>
drivers/staging/rtl8192e/rtllib_rx.c

index 8f4f5893303b35982a993912dc444a8cdf9c8317..1c2014fd8d812ab85c9ae9edf0451665618e9e3c 100644 (file)
@@ -52,7 +52,7 @@ static inline void rtllib_monitor_rx(struct rtllib_device *ieee,
        skb_reset_mac_header(skb);
        skb_pull(skb, hdr_length);
        skb->pkt_type = PACKET_OTHERHOST;
-       skb->protocol = __constant_htons(ETH_P_80211_RAW);
+       skb->protocol = htons(ETH_P_80211_RAW);
        memset(skb->cb, 0, sizeof(skb->cb));
        netif_rx(skb);
 }