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)
commit8932b5a533db72317181ab7f9e7290f9dd3f5d1b
tree63e388c820d2ca835d65e384c6994e424c5baca6
parent580d395cb9ab60261586bf8ddd5d54de2f29d4fa
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