Skip to content
  • Li RongQing's avatar
    ksz884x: fix Endian · 5b70ca35
    Li RongQing authored
    
    
    ETH_P_IP is host Endian, skb->protocol is big Endian, when
    compare them, Using htons on skb->protocol is wrong.
    
    And fix two code style issues: indentation and remove
    unnecessary parentheses.
    
    CC: Tristram Ha <Tristram.Ha@micrel.com>
    CC: Ben Hutchings <bhutchings@solarflare.com>
    CC: Joe Perches <joe@perches.com>
    Signed-off-by: default avatarLi RongQing <roy.qing.li@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5b70ca35