]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: remove is_udp variable
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 2 Jul 2020 09:06:01 +0000 (12:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2020 21:22:00 +0000 (14:22 -0700)
commit405ce52d5ea7713c014de4d317efb7fb3dc9689e
tree63e388c820d2ca835d65e384c6994e424c5baca6
parentcad75210df25f308bc690cf91246009c50c7bf89
net: macb: remove is_udp variable

Remove is_udp variable that is used in only one place and use
ip_hdr(skb)->protocol == IPPROTO_UDP check instead.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c