From: Hari Prasath Gujulan Elango Date: Tue, 22 Dec 2015 11:44:43 +0000 (+0000) Subject: staging: wilc1000: replace numerical constant with predefined MACRO X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a045618e01ac486528f848841a3b31b9b7582c0c;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index 83af51bb83e8..0b62cc5df488 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -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 *)ð_hdr_ptr[12])); - if (h_proto == 0x0800) { + if (h_proto == ETH_P_IP) { u8 *ip_hdr_ptr; u8 protocol;