Merge commit 'v2.6.31-rc3'; commit 'tip/oprofile' into oprofile/core
[firefly-linux-kernel-4.4.55.git] / drivers / net / ioc3-eth.c
index c5593f4665a4ea6ffae45c793f4869a5f4c57ec5..e3cfefab670c8b4fb3f4eaf5cc51d243466639a0 100644 (file)
@@ -530,7 +530,7 @@ static void ioc3_tcpudp_checksum(struct sk_buff *skb, uint32_t hwsum, int len)
         *   case where the checksum is right the higher layers will still
         *   drop the packet as appropriate.
         */
-       if (eh->h_proto != ntohs(ETH_P_IP))
+       if (eh->h_proto != htons(ETH_P_IP))
                return;
 
        ih = (struct iphdr *) ((char *)eh + ETH_HLEN);