staging: wilc1000: replace numerical constant with predefined MACRO

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>
This commit is contained in:
Hari Prasath Gujulan Elango 2015-12-22 11:44:43 +00:00 committed by Greg Kroah-Hartman
parent 43d1ca5284
commit a045618e01

View 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;