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:
parent
43d1ca5284
commit
a045618e01
@ -248,7 +248,7 @@ static inline int tcp_process(struct net_device *dev, struct txq_entry_t *tqe)
|
|||||||
|
|
||||||
eth_hdr_ptr = &buffer[0];
|
eth_hdr_ptr = &buffer[0];
|
||||||
h_proto = ntohs(*((unsigned short *)ð_hdr_ptr[12]));
|
h_proto = ntohs(*((unsigned short *)ð_hdr_ptr[12]));
|
||||||
if (h_proto == 0x0800) {
|
if (h_proto == ETH_P_IP) {
|
||||||
u8 *ip_hdr_ptr;
|
u8 *ip_hdr_ptr;
|
||||||
u8 protocol;
|
u8 protocol;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user