mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue