staging: wilc1000: replace numerical constant with predefined MACRO
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Tue, 22 Dec 2015 11:44:43 +0000 (11:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:05:35 +0000 (15:05 -0800)
Replace the pre-defined macro signifying the ethernet protocol type
defined in the kernel headers instead of the numerical constant

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c

index 83af51b..0b62cc5 100644 (file)
@@ -248,7 +248,7 @@ static inline int tcp_process(struct net_device *dev, struct txq_entry_t *tqe)
 
        eth_hdr_ptr = &buffer[0];
        h_proto = ntohs(*((unsigned short *)&eth_hdr_ptr[12]));
-       if (h_proto == 0x0800) {
+       if (h_proto == ETH_P_IP) {
                u8 *ip_hdr_ptr;
                u8 protocol;